forked from themrdemonized/xray-monolith
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHOM.h
More file actions
66 lines (54 loc) · 1.09 KB
/
HOM.h
File metadata and controls
66 lines (54 loc) · 1.09 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// HOM.h: interface for the CHOM class.
//
//////////////////////////////////////////////////////////////////////
#pragma once
#include "../../xrEngine/IGame_Persistent.h"
class occTri;
class CHOM
#ifdef DEBUG
: public pureRender
#endif
{
private:
xrXRC xrc;
CDB::MODEL* m_pModel;
occTri* m_pTris;
BOOL bEnabled;
Fmatrix m_xform;
Fmatrix m_xform_01;
#ifdef DEBUG
u32 tris_in_frame_visible ;
u32 tris_in_frame ;
#endif
xrCriticalSection MT;
volatile u32 MT_frame_rendered;
void Render_DB(CFrustum& base);
public:
void Load();
void Unload();
void Render(CFrustum& base);
void Render_ZB();
// void Debug ();
void occlude(Fbox2& space)
{
}
void Disable();
void Enable();
void __stdcall MT_RENDER();
ICF void MT_SYNC()
{
if (g_pGamePersistent->m_pMainMenu && g_pGamePersistent->m_pMainMenu->IsActive())
return;
MT_RENDER();
}
BOOL visible(vis_data& vis);
BOOL visible(Fbox3& B);
BOOL visible(sPoly& P);
BOOL visible(Fbox2& B, float depth); // viewport-space (0..1)
CHOM();
~CHOM();
#ifdef DEBUG
virtual void OnRender ();
void stats ();
#endif
};