1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-10-31 23:35:55 +00:00
re3/src/render/Skidmarks.h

33 lines
621 B
C
Raw Normal View History

#pragma once
enum { SKIDMARK_LENGTH = 16 };
2020-04-08 14:35:23 +00:00
class CSkidmark
{
public:
uint8 m_state;
bool m_wasUpdated;
bool m_isBloody;
bool m_isMuddy;
uintptr m_id;
int16 m_last;
2020-05-31 15:45:26 +00:00
uint32 m_lastUpdate;
2020-04-08 14:35:23 +00:00
uint32 m_fadeStart;
uint32 m_fadeEnd;
CVector m_pos[SKIDMARK_LENGTH];
CVector m_side[SKIDMARK_LENGTH];
2020-04-08 14:35:23 +00:00
};
class CSkidmarks
{
2020-04-08 14:35:23 +00:00
static CSkidmark aSkidmarks[NUMSKIDMARKS];
public:
2020-04-08 14:35:23 +00:00
static void Init(void);
static void Shutdown(void);
2019-06-24 22:42:23 +00:00
static void Clear(void);
2019-10-18 22:23:40 +00:00
static void Update(void);
static void Render(void);
2020-04-08 14:35:23 +00:00
static void RegisterOne(uintptr id, CVector pos, float fwdX, float fwdY, bool *isMuddy, bool *isBloody);
};