summaryrefslogtreecommitdiffstats
path: root/src/render/Occlusion.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-07-20 23:25:04 +0200
committeraap <aap@papnet.eu>2020-07-20 23:25:04 +0200
commit5bedca7692490914ad2545767a6f1aa1fd46f386 (patch)
treefcee819f4c59b21fb4cbd48eb9f0c96cfbdff239 /src/render/Occlusion.h
parentMerge pull request #650 from majesticCoding/miami (diff)
downloadre3-5bedca7692490914ad2545767a6f1aa1fd46f386.tar
re3-5bedca7692490914ad2545767a6f1aa1fd46f386.tar.gz
re3-5bedca7692490914ad2545767a6f1aa1fd46f386.tar.bz2
re3-5bedca7692490914ad2545767a6f1aa1fd46f386.tar.lz
re3-5bedca7692490914ad2545767a6f1aa1fd46f386.tar.xz
re3-5bedca7692490914ad2545767a6f1aa1fd46f386.tar.zst
re3-5bedca7692490914ad2545767a6f1aa1fd46f386.zip
Diffstat (limited to '')
-rw-r--r--src/render/Occlusion.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/render/Occlusion.h b/src/render/Occlusion.h
index 9b7ba34f..9a415f88 100644
--- a/src/render/Occlusion.h
+++ b/src/render/Occlusion.h
@@ -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); \ No newline at end of file
+bool CalcScreenCoors(CVector const &in, CVector *out);
+
+extern bool bDisplayOccDebugStuff;