-
Notifications
You must be signed in to change notification settings - Fork 1
/
GlowManager.h
60 lines (48 loc) · 1.18 KB
/
GlowManager.h
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
#pragma once
#include "Interfaces.h"
#include "MiscClasses.h"
class CGlowObjectManager
{
public:
class GlowObjectDefinition_t
{
public:
void set(Color color)
{
m_vGlowColor = Vector(color.rBase(), color.gBase(), color.bBase());
m_flGlowAlpha = color.aBase();
m_bRenderWhenOccluded = true;
m_bRenderWhenUnoccluded = false;
m_flBloomAmount = 1.f;
}
IClientEntity* getEntity()
{
return m_hEntity;
}
bool IsEmpty() const { return m_nNextFreeSlot != GlowObjectDefinition_t::ENTRY_IN_USE; }
public:
IClientEntity* m_hEntity;
Vector m_vGlowColor;
float m_flGlowAlpha;
char unknown[4];
float flUnk;
float m_flBloomAmount;
float localplayeriszeropoint3;
bool m_bRenderWhenOccluded;
bool m_bRenderWhenUnoccluded;
bool m_bFullBloomRender;
char unknown1[1];
int m_nFullBloomStencilTestValue;
int iUnk;
int m_nSplitScreenSlot;
int m_nNextFreeSlot;
static const int END_OF_FREE_LIST = -1;
static const int ENTRY_IN_USE = -2;
};
GlowObjectDefinition_t* m_GlowObjectDefinitions;
int max_size;
int pad;
int size;
GlowObjectDefinition_t* m_GlowObjectDefinitions2;
int currentObjects;
};