-
-
Notifications
You must be signed in to change notification settings - Fork 546
Expand file tree
/
Copy pathCVisibilityPlugins.h
More file actions
35 lines (28 loc) · 1.11 KB
/
CVisibilityPlugins.h
File metadata and controls
35 lines (28 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: sdk/game/CVisibilityPlugins.h
* PURPOSE: Visibility plugins interface
*
* Multi Theft Auto is available from https://www.multitheftauto.com/
*
*****************************************************************************/
#pragma once
#include "enums/RenderingEntityListType.h"
#define ATOMIC_ID_FLAG_TWO_VERSIONS_UNDAMAGED 1
#define ATOMIC_ID_FLAG_TWO_VERSIONS_DAMAGED 2
#define DEFAULT_MAX_ALPHA_ENTITIES 200
#define DEFAULT_MAX_UNDERWATER_ENTITIES 100
struct RpClump;
struct RpAtomic;
struct RwObject;
class CVisibilityPlugins
{
public:
virtual void SetClumpAlpha(RpClump* pClump, int iAlpha) = 0;
virtual int GetAtomicId(RwObject* pAtomic) = 0;
virtual bool IsAtomicVisible(RpAtomic* atomic) const = 0;
virtual bool InsertEntityIntoEntityList(void* entity, float distance, void* callback) = 0;
virtual void SetRenderingListSize(RenderingEntityListType listType, std::size_t elementsCount) = 0;
};