fixed COcclusion

This commit is contained in:
aap 2020-07-20 23:25:04 +02:00
parent ee2d0ffc14
commit 5bedca7692
5 changed files with 74 additions and 56 deletions

View file

@ -19,7 +19,7 @@ public:
class COccluder
{
public:
int16 width, length, height;
int16 length, width, height;
int16 x, y, z;
uint16 angle;
int16 listIndex;
@ -27,6 +27,7 @@ public:
bool NearCamera();
bool ProcessOneOccluder(CActiveOccluder *occl);
bool ProcessLineSegment(int corner1, int corner2, CActiveOccluder* occl);
float GetAngle(void) { return angle*TWOPI/UINT16_MAX; }
};
class COcclusion
@ -52,4 +53,6 @@ public:
};
bool CalcScreenCoors(CVector const &in, CVector *out, float *outw, float *outh);
bool CalcScreenCoors(CVector const &in, CVector *out);
bool CalcScreenCoors(CVector const &in, CVector *out);
extern bool bDisplayOccDebugStuff;