diff options
author | aap <aap@papnet.eu> | 2020-04-08 16:35:23 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-04-08 16:35:23 +0200 |
commit | 6288d36f34444eff6900f889ef6344358e7ebee3 (patch) | |
tree | 56e50a0aca0d0de1e4115d8c0d36f9b5708f4f12 /src/render/Skidmarks.h | |
parent | Reverting tabs back to spaces for aap (diff) | |
download | re3-6288d36f34444eff6900f889ef6344358e7ebee3.tar re3-6288d36f34444eff6900f889ef6344358e7ebee3.tar.gz re3-6288d36f34444eff6900f889ef6344358e7ebee3.tar.bz2 re3-6288d36f34444eff6900f889ef6344358e7ebee3.tar.lz re3-6288d36f34444eff6900f889ef6344358e7ebee3.tar.xz re3-6288d36f34444eff6900f889ef6344358e7ebee3.tar.zst re3-6288d36f34444eff6900f889ef6344358e7ebee3.zip |
Diffstat (limited to '')
-rw-r--r-- | src/render/Skidmarks.h | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/src/render/Skidmarks.h b/src/render/Skidmarks.h index bf2da7e4..5387d8f4 100644 --- a/src/render/Skidmarks.h +++ b/src/render/Skidmarks.h @@ -1,12 +1,30 @@ #pragma once +class CSkidmark +{ +public: + uint8 m_state; + bool m_wasUpdated; + bool m_isBloody; + bool m_isMuddy; + uintptr m_id; + int16 m_last; + uint32 m_lastUpdate;; + uint32 m_fadeStart; + uint32 m_fadeEnd; + CVector m_pos[16]; + CVector m_side[16]; +}; + class CSkidmarks { + static CSkidmark aSkidmarks[NUMSKIDMARKS]; public: + + static void Init(void); + static void Shutdown(void); static void Clear(void); static void Update(void); static void Render(void); - static void RegisterOne(uint32 id, CVector pos, float fwdx, float fwdY, bool *isMuddy, bool *isBloddy); - static void Init(void); - static void Shutdown(void); + static void RegisterOne(uintptr id, CVector pos, float fwdX, float fwdY, bool *isMuddy, bool *isBloody); }; |