From d0404cbdb77bd82abf578ce28093990db94743f2 Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Thu, 15 Jul 2021 18:19:32 +0300 Subject: render -> renderer (original name) --- src/render/Glass.h | 52 ---------------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 src/render/Glass.h (limited to 'src/render/Glass.h') diff --git a/src/render/Glass.h b/src/render/Glass.h deleted file mode 100644 index 51c5aae9..00000000 --- a/src/render/Glass.h +++ /dev/null @@ -1,52 +0,0 @@ -#pragma once - -class CEntity; - -class CFallingGlassPane : public CMatrix -{ -public: - CVector m_vecMoveSpeed; - CVector m_vecTurn; - uint32 m_nTimer; - float m_fGroundZ; - float m_fStep; - uint8 m_nTriIndex; - bool m_bActive; - bool m_bShattered; - - CFallingGlassPane() { } - ~CFallingGlassPane() { } - - void Update(void); - void Render(void); -}; - -VALIDATE_SIZE(CFallingGlassPane, 0x70); - -enum -{ - NUM_GLASSTRIANGLES = 5, -}; - -class CGlass -{ - static uint32 NumGlassEntities; - static CEntity *apEntitiesToBeRendered[NUM_GLASSENTITIES]; - static CFallingGlassPane aGlassPanes[NUM_GLASSPANES]; -public: - static void Init(void); - 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 AskForObjectToBeRenderedInGlass(CEntity *entity); - static void RenderEntityInGlass(CEntity *entity); - static int32 CalcAlphaWithNormal(CVector *normal); - static void RenderHiLightPolys(void); - static void RenderShatteredPolys(void); - static void RenderReflectionPolys(void); - static void WindowRespondsToCollision(CEntity *entity, float amount, CVector speed, CVector point, bool explosion); - static void WindowRespondsToSoftCollision(CEntity *entity, float amount); - static void WasGlassHitByBullet(CEntity *entity, CVector point); - static void WindowRespondsToExplosion(CEntity *entity, CVector point); -}; \ No newline at end of file -- cgit v1.2.3