2019-05-15 10:52:37 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class CEntity;
|
|
|
|
|
|
|
|
extern bool gbShowPedRoadGroups;
|
|
|
|
extern bool gbShowCarRoadGroups;
|
|
|
|
extern bool gbShowCollisionPolys;
|
2019-07-19 07:58:19 -04:00
|
|
|
extern bool gbShowCollisionLines;
|
2019-11-09 10:17:54 -05:00
|
|
|
extern bool gbShowCullZoneDebugStuff;
|
|
|
|
extern bool gbBigWhiteDebugLightSwitchedOn;
|
2019-05-15 10:52:37 -04:00
|
|
|
|
|
|
|
extern bool gbDontRenderBuildings;
|
|
|
|
extern bool gbDontRenderBigBuildings;
|
|
|
|
extern bool gbDontRenderPeds;
|
|
|
|
extern bool gbDontRenderObjects;
|
2019-07-19 07:58:19 -04:00
|
|
|
extern bool gbDontRenderVehicles;
|
2019-05-15 10:52:37 -04:00
|
|
|
|
|
|
|
class CVehicle;
|
|
|
|
class CPtrList;
|
|
|
|
|
|
|
|
class CRenderer
|
|
|
|
{
|
|
|
|
static int32 &ms_nNoOfVisibleEntities;
|
2019-11-02 19:13:29 -04:00
|
|
|
static CEntity *(&ms_aVisibleEntityPtrs)[NUMVISIBLEENTITIES];
|
2019-05-15 10:52:37 -04:00
|
|
|
static int32 &ms_nNoOfInVisibleEntities;
|
2019-11-02 19:13:29 -04:00
|
|
|
static CEntity *(&ms_aInVisibleEntityPtrs)[NUMINVISIBLEENTITIES];
|
2019-05-15 10:52:37 -04:00
|
|
|
|
|
|
|
static CVector &ms_vecCameraPosition;
|
|
|
|
static CVehicle *&m_pFirstPersonVehicle;
|
2019-07-14 06:46:36 -04:00
|
|
|
|
2019-05-15 10:52:37 -04:00
|
|
|
public:
|
2020-04-12 22:32:11 -04:00
|
|
|
static float ms_lodDistScale; // defined in Frontend.cpp
|
2019-06-26 18:12:58 -04:00
|
|
|
static bool &m_loadingPriority;
|
|
|
|
|
2019-05-15 10:52:37 -04:00
|
|
|
static void Init(void);
|
2019-07-06 06:27:21 -04:00
|
|
|
static void Shutdown(void);
|
2019-05-31 05:44:43 -04:00
|
|
|
static void PreRender(void);
|
2019-05-15 10:52:37 -04:00
|
|
|
|
|
|
|
static void RenderRoads(void);
|
|
|
|
static void RenderFadingInEntities(void);
|
|
|
|
static void RenderEverythingBarRoads(void);
|
|
|
|
static void RenderVehiclesButNotBoats(void);
|
|
|
|
static void RenderBoats(void);
|
|
|
|
static void RenderOneRoad(CEntity *);
|
|
|
|
static void RenderOneNonRoad(CEntity *);
|
|
|
|
static void RenderFirstPersonVehicle(void);
|
|
|
|
|
2019-07-19 07:58:19 -04:00
|
|
|
static void RenderCollisionLines(void);
|
|
|
|
|
2019-05-15 10:52:37 -04:00
|
|
|
static int32 SetupEntityVisibility(CEntity *ent);
|
|
|
|
static int32 SetupBigBuildingVisibility(CEntity *ent);
|
|
|
|
|
|
|
|
static void ConstructRenderList(void);
|
|
|
|
static void ScanWorld(void);
|
|
|
|
static void RequestObjectsInFrustum(void);
|
|
|
|
static void ScanSectorPoly(RwV2d *poly, int32 numVertices, void (*scanfunc)(CPtrList *));
|
|
|
|
static void ScanBigBuildingList(CPtrList &list);
|
|
|
|
static void ScanSectorList(CPtrList *lists);
|
|
|
|
static void ScanSectorList_Priority(CPtrList *lists);
|
|
|
|
static void ScanSectorList_Subway(CPtrList *lists);
|
|
|
|
static void ScanSectorList_RequestModels(CPtrList *lists);
|
|
|
|
|
|
|
|
static void SortBIGBuildings(void);
|
|
|
|
static void SortBIGBuildingsForSectorList(CPtrList *list);
|
|
|
|
|
|
|
|
static bool ShouldModelBeStreamed(CEntity *ent);
|
|
|
|
static bool IsEntityCullZoneVisible(CEntity *ent);
|
|
|
|
static bool IsVehicleCullZoneVisible(CEntity *ent);
|
2019-06-12 15:17:02 -04:00
|
|
|
|
|
|
|
static void RemoveVehiclePedLights(CEntity *ent, bool reset);
|
2019-05-15 10:52:37 -04:00
|
|
|
};
|