summaryrefslogtreecommitdiffstats
path: root/src/render/SpecialFX.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-03-22 14:41:03 +0100
committerGitHub <noreply@github.com>2020-03-22 14:41:03 +0100
commitf9342c7e8341130d3783316584acaff91fe96660 (patch)
tree16ce4d0b84913ca71c47dcb65b48590f7c6ed633 /src/render/SpecialFX.h
parentfixed vehicle rendering bug (diff)
parentbullet traces fixes (diff)
downloadre3-f9342c7e8341130d3783316584acaff91fe96660.tar
re3-f9342c7e8341130d3783316584acaff91fe96660.tar.gz
re3-f9342c7e8341130d3783316584acaff91fe96660.tar.bz2
re3-f9342c7e8341130d3783316584acaff91fe96660.tar.lz
re3-f9342c7e8341130d3783316584acaff91fe96660.tar.xz
re3-f9342c7e8341130d3783316584acaff91fe96660.tar.zst
re3-f9342c7e8341130d3783316584acaff91fe96660.zip
Diffstat (limited to 'src/render/SpecialFX.h')
-rw-r--r--src/render/SpecialFX.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/render/SpecialFX.h b/src/render/SpecialFX.h
index 7c0e3436..ecd3ad87 100644
--- a/src/render/SpecialFX.h
+++ b/src/render/SpecialFX.h
@@ -15,19 +15,24 @@ public:
struct CBulletTrace
{
- CVector m_vecInf;
- CVector m_vecSup;
+ CVector m_vecCurrentPos;
+ CVector m_vecTargetPos;
bool m_bInUse;
uint8 m_framesInUse;
uint8 m_lifeTime;
+
+ void Update(void);
};
class CBulletTraces
{
public:
- static CBulletTrace (&aTraces)[16];
+ static CBulletTrace (&aTraces)[NUMBULLETTRACES];
static void Init(void);
+ static void AddTrace(CVector*, CVector*);
+ static void Render(void);
+ static void Update(void);
};
class CBrightLights