2020-05-11 17:03:32 +02:00
|
|
|
#pragma once
|
|
|
|
|
2020-05-19 10:23:08 +02:00
|
|
|
class COccluder
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
int16 width, length, height;
|
|
|
|
int16 x, y, z;
|
|
|
|
uint16 angle;
|
|
|
|
int16 listIndex;
|
|
|
|
};
|
|
|
|
|
2020-05-11 17:03:32 +02:00
|
|
|
class COcclusion
|
|
|
|
{
|
|
|
|
public:
|
2020-05-19 10:23:08 +02:00
|
|
|
static int32 NumOccludersOnMap;
|
|
|
|
static int16 FarAwayList;
|
|
|
|
static int16 NearbyList;
|
|
|
|
static int16 ListWalkThroughFA;
|
|
|
|
static int16 PreviousListWalkThroughFA;
|
|
|
|
|
|
|
|
static COccluder aOccluders[NUMOCCLUSIONVOLUMES];
|
|
|
|
|
|
|
|
static void Init(void);
|
|
|
|
static void AddOne(float x, float y, float z, float width, float length, float height, float angle);
|
2020-05-11 17:03:32 +02:00
|
|
|
static void ProcessBeforeRendering(void);
|
2020-05-27 20:50:01 +02:00
|
|
|
|
|
|
|
//TODO:
|
|
|
|
static bool IsAABoxOccluded(CVector pos, float, float, float) { return false; }
|
2020-05-11 17:03:32 +02:00
|
|
|
};
|