diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-07-15 17:19:32 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-07-17 23:04:26 +0200 |
commit | d0404cbdb77bd82abf578ce28093990db94743f2 (patch) | |
tree | 1a7232c3dcdd6c371ab5fbde0fc6bf04c5bc7005 /src/render/Renderer.h | |
parent | Merge pull request #1217 from Nopey/master (diff) | |
download | re3-d0404cbdb77bd82abf578ce28093990db94743f2.tar re3-d0404cbdb77bd82abf578ce28093990db94743f2.tar.gz re3-d0404cbdb77bd82abf578ce28093990db94743f2.tar.bz2 re3-d0404cbdb77bd82abf578ce28093990db94743f2.tar.lz re3-d0404cbdb77bd82abf578ce28093990db94743f2.tar.xz re3-d0404cbdb77bd82abf578ce28093990db94743f2.tar.zst re3-d0404cbdb77bd82abf578ce28093990db94743f2.zip |
Diffstat (limited to 'src/render/Renderer.h')
-rw-r--r-- | src/render/Renderer.h | 119 |
1 files changed, 0 insertions, 119 deletions
diff --git a/src/render/Renderer.h b/src/render/Renderer.h deleted file mode 100644 index 0322939c..00000000 --- a/src/render/Renderer.h +++ /dev/null @@ -1,119 +0,0 @@ -#pragma once - -class CEntity; - -#ifdef FIX_BUGS -#define LOD_DISTANCE (300.0f*TheCamera.LODDistMultiplier) -#else -#define LOD_DISTANCE 300.0f -#endif -#define FADE_DISTANCE 20.0f -#define STREAM_DISTANCE 30.0f - -#ifdef EXTRA_MODEL_FLAGS -#define BACKFACE_CULLING_ON SetCullMode(rwCULLMODECULLBACK) -#define BACKFACE_CULLING_OFF SetCullMode(rwCULLMODECULLNONE) -#else -#define BACKFACE_CULLING_ON -#define BACKFACE_CULLING_OFF -#endif - -extern bool gbShowPedRoadGroups; -extern bool gbShowCarRoadGroups; -extern bool gbShowCollisionPolys; -extern bool gbShowCollisionLines; -extern bool gbShowCullZoneDebugStuff; -extern bool gbDisableZoneCull; // not original -extern bool gbBigWhiteDebugLightSwitchedOn; - -extern bool gbDontRenderBuildings; -extern bool gbDontRenderBigBuildings; -extern bool gbDontRenderPeds; -extern bool gbDontRenderObjects; -extern bool gbDontRenderVehicles; - -class CVehicle; -class CPtrList; - -// unused -struct BlockedRange -{ - float a, b; // unknown - BlockedRange *prev, *next; -}; - -class CRenderer -{ - static int32 ms_nNoOfVisibleEntities; - static CEntity *ms_aVisibleEntityPtrs[NUMVISIBLEENTITIES]; - static int32 ms_nNoOfInVisibleEntities; - static CEntity *ms_aInVisibleEntityPtrs[NUMINVISIBLEENTITIES]; -#ifdef NEW_RENDERER - static int32 ms_nNoOfVisibleVehicles; - static CEntity *ms_aVisibleVehiclePtrs[NUMVISIBLEENTITIES]; - // for cWorldStream emulation - static int32 ms_nNoOfVisibleBuildings; - static CEntity *ms_aVisibleBuildingPtrs[NUMVISIBLEENTITIES]; -#endif - - static CVector ms_vecCameraPosition; - static CVehicle *m_pFirstPersonVehicle; - - // unused - static BlockedRange aBlockedRanges[16]; - static BlockedRange *pFullBlockedRanges; - static BlockedRange *pEmptyBlockedRanges; -public: - static float ms_lodDistScale; - static bool m_loadingPriority; - - static void Init(void); - static void Shutdown(void); - static void PreRender(void); - - 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); - - static void RenderCollisionLines(void); - // unused - static void RenderBlockBuildingLines(void); - - 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); - - static void RemoveVehiclePedLights(CEntity *ent, bool reset); - - -#ifdef NEW_RENDERER - static void ClearForFrame(void); - static void RenderPeds(void); - static void RenderVehicles(void); // also renders peds in LCS - static void RenderOneBuilding(CEntity *ent, float camdist = 0.0f); - static void RenderWorld(int pass); // like cWorldStream::Render(int) - static void RenderWater(void); // keep-out polys and water -#endif - static void InsertEntityIntoList(CEntity *ent); -}; |