summaryrefslogtreecommitdiffstats
path: root/src/render/Occlusion.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-19 10:23:08 +0200
committeraap <aap@papnet.eu>2020-05-19 10:23:08 +0200
commit62db8cd9b0030f042403e996b20c3ceca5cd4f7a (patch)
treea528e7b7f79e13a0e9915b67ab3448915391037c /src/render/Occlusion.h
parentsome less certainly fps fixes (diff)
downloadre3-62db8cd9b0030f042403e996b20c3ceca5cd4f7a.tar
re3-62db8cd9b0030f042403e996b20c3ceca5cd4f7a.tar.gz
re3-62db8cd9b0030f042403e996b20c3ceca5cd4f7a.tar.bz2
re3-62db8cd9b0030f042403e996b20c3ceca5cd4f7a.tar.lz
re3-62db8cd9b0030f042403e996b20c3ceca5cd4f7a.tar.xz
re3-62db8cd9b0030f042403e996b20c3ceca5cd4f7a.tar.zst
re3-62db8cd9b0030f042403e996b20c3ceca5cd4f7a.zip
Diffstat (limited to 'src/render/Occlusion.h')
-rw-r--r--src/render/Occlusion.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/render/Occlusion.h b/src/render/Occlusion.h
index 977649b8..ac0ede5e 100644
--- a/src/render/Occlusion.h
+++ b/src/render/Occlusion.h
@@ -1,7 +1,26 @@
#pragma once
+class COccluder
+{
+public:
+ int16 width, length, height;
+ int16 x, y, z;
+ uint16 angle;
+ int16 listIndex;
+};
+
class COcclusion
{
public:
+ 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);
static void ProcessBeforeRendering(void);
};