summaryrefslogtreecommitdiffstats
path: root/src/render/Glass.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-10-18 19:35:19 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-10-18 19:35:19 +0200
commitbc42b3a78e59458c611dc77598f85412a258be03 (patch)
treeff319803e09581ebba100f08f267da0f4d6d6c89 /src/render/Glass.h
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
parentMerge pull request #769 from Sergeanur/VC/Pickups (diff)
downloadre3-bc42b3a78e59458c611dc77598f85412a258be03.tar
re3-bc42b3a78e59458c611dc77598f85412a258be03.tar.gz
re3-bc42b3a78e59458c611dc77598f85412a258be03.tar.bz2
re3-bc42b3a78e59458c611dc77598f85412a258be03.tar.lz
re3-bc42b3a78e59458c611dc77598f85412a258be03.tar.xz
re3-bc42b3a78e59458c611dc77598f85412a258be03.tar.zst
re3-bc42b3a78e59458c611dc77598f85412a258be03.zip
Diffstat (limited to 'src/render/Glass.h')
-rw-r--r--src/render/Glass.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/render/Glass.h b/src/render/Glass.h
index 937ab6a9..f1c85779 100644
--- a/src/render/Glass.h
+++ b/src/render/Glass.h
@@ -2,6 +2,7 @@
class CEntity;
class CVehicle;
+class CPtrList;
class CFallingGlassPane : public CMatrix
{
@@ -14,6 +15,7 @@ public:
uint8 m_nTriIndex;
bool m_bActive;
bool m_bShattered;
+ bool m_bCarGlass;
CFallingGlassPane() { }
~CFallingGlassPane() { }
@@ -39,7 +41,7 @@ public:
static void Update(void);
static void Render(void);
static CFallingGlassPane *FindFreePane(void);
- static void GeneratePanesForWindow(uint32 type, CVector pos, CVector up, CVector right, CVector speed, CVector point, float moveSpeed, bool cracked, bool explosion);
+ static void GeneratePanesForWindow(uint32 type, CVector pos, CVector up, CVector right, CVector speed, CVector center, float moveSpeed, bool cracked, bool explosion, int32 stepmul, bool carGlass);
static void AskForObjectToBeRenderedInGlass(CEntity *entity);
static void RenderEntityInGlass(CEntity *entity);
static int32 CalcAlphaWithNormal(CVector *normal);
@@ -50,8 +52,8 @@ public:
static void WindowRespondsToSoftCollision(CEntity *entity, float amount);
static void WasGlassHitByBullet(CEntity *entity, CVector point);
static void WindowRespondsToExplosion(CEntity *entity, CVector point);
-
-//TODO(MIAMI)
- static void CarWindscreenShatters(CVehicle *vehicle, bool unk) {}
- static void BreakGlassPhysically(CVector, float) {}
+ static void CarWindscreenShatters(CVehicle *vehicle, bool unk);
+ static bool HasGlassBeenShatteredAtCoors(float x, float y, float z);
+ static void FindWindowSectorList(CPtrList &list, float *dist, CEntity **entity, float x, float y, float z);
+ static void BreakGlassPhysically(CVector pos, float radius);
}; \ No newline at end of file