diff options
author | aap <aap@papnet.eu> | 2020-04-07 16:48:49 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-04-07 17:16:58 +0200 |
commit | 51512db0063385bfb823edee150e3cc59eae7b1b (patch) | |
tree | 632c705722dee6eaea8ddae257505a2c453e0232 /src/render/SpecialFX.h | |
parent | implemented CShinyTexts (diff) | |
download | re3-51512db0063385bfb823edee150e3cc59eae7b1b.tar re3-51512db0063385bfb823edee150e3cc59eae7b1b.tar.gz re3-51512db0063385bfb823edee150e3cc59eae7b1b.tar.bz2 re3-51512db0063385bfb823edee150e3cc59eae7b1b.tar.lz re3-51512db0063385bfb823edee150e3cc59eae7b1b.tar.xz re3-51512db0063385bfb823edee150e3cc59eae7b1b.tar.zst re3-51512db0063385bfb823edee150e3cc59eae7b1b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/render/SpecialFX.h | 58 |
1 files changed, 52 insertions, 6 deletions
diff --git a/src/render/SpecialFX.h b/src/render/SpecialFX.h index 22ee502e..1cff55b3 100644 --- a/src/render/SpecialFX.h +++ b/src/render/SpecialFX.h @@ -37,12 +37,6 @@ public: static void Update(void); }; -class CBrightLights -{ -public: - static void RegisterOne(CVector pos, CVector up, CVector right, CVector fwd, uint8 type, uint8 unk1 = 0, uint8 unk2 = 0, uint8 unk3 = 0); -}; - enum { MARKERTYPE_0 = 0, @@ -97,6 +91,58 @@ public: enum { + BRIGHTLIGHT_INVALID, + BRIGHTLIGHT_TRAFFIC_GREEN, + BRIGHTLIGHT_TRAFFIC_YELLOW, + BRIGHTLIGHT_TRAFFIC_RED, + + // white + BRIGHTLIGHT_FRONT_LONG, + BRIGHTLIGHT_FRONT_SMALL, + BRIGHTLIGHT_FRONT_BIG, + BRIGHTLIGHT_FRONT_TALL, + + // red + BRIGHTLIGHT_REAR_LONG, + BRIGHTLIGHT_REAR_SMALL, + BRIGHTLIGHT_REAR_BIG, + BRIGHTLIGHT_REAR_TALL, + + BRIGHTLIGHT_SIREN, // unused + + BRIGHTLIGHT_FRONT = BRIGHTLIGHT_FRONT_LONG, + BRIGHTLIGHT_REAR = BRIGHTLIGHT_REAR_LONG, +}; + +class CBrightLight
+{
+public:
+ CVector m_pos;
+ CVector m_up;
+ CVector m_side;
+ CVector m_front;
+ float m_camDist;
+ uint8 m_type;
+ uint8 m_red;
+ uint8 m_green;
+ uint8 m_blue;
+}; + +class CBrightLights +{ + static int NumBrightLights; + static CBrightLight aBrightLights[NUMBRIGHTLIGHTS]; +public: + static void Init(void);
+ static void RegisterOne(CVector pos, CVector up, CVector side, CVector front, + uint8 type, uint8 red = 0, uint8 green = 0, uint8 blue = 0); + static void Render(void);
+ static void RenderOutGeometryBuffer(void);
+}; + + +enum +{ SHINYTEXT_WALK = 1, SHINYTEXT_FLAT }; |