diff options
author | aap <aap@papnet.eu> | 2020-07-20 23:25:04 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-07-20 23:25:04 +0200 |
commit | 5bedca7692490914ad2545767a6f1aa1fd46f386 (patch) | |
tree | fcee819f4c59b21fb4cbd48eb9f0c96cfbdff239 /src/render/Occlusion.h | |
parent | Merge pull request #650 from majesticCoding/miami (diff) | |
download | re3-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.h | 7 |
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; |