summaryrefslogtreecommitdiffstats
path: root/src/render/Occlusion.h
blob: ac0ede5e74867f45b288a57b8da6e0cc2d24b427 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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);
};