mirror of
https://github.com/halpz/re3.git
synced 2025-05-12 05:46:39 +03:00
more high level functions
This commit is contained in:
parent
f50cf32b87
commit
84204471a5
28 changed files with 415 additions and 24 deletions
|
@ -5,6 +5,7 @@
|
|||
#include "Treadable.h"
|
||||
#include "Ped.h"
|
||||
#include "Vehicle.h"
|
||||
#include "Heli.h"
|
||||
#include "Object.h"
|
||||
#include "PathFind.h"
|
||||
#include "Collision.h"
|
||||
|
@ -14,6 +15,7 @@
|
|||
#include "Camera.h"
|
||||
#include "ModelIndices.h"
|
||||
#include "Streaming.h"
|
||||
#include "Shadows.h"
|
||||
#include "Renderer.h"
|
||||
|
||||
bool gbShowPedRoadGroups;
|
||||
|
@ -48,6 +50,28 @@ CRenderer::Init(void)
|
|||
gSortedVehiclesAndPeds.Init(40);
|
||||
SortBIGBuildings();
|
||||
}
|
||||
|
||||
void
|
||||
CRenderer::PreRender(void)
|
||||
{
|
||||
int i;
|
||||
CLink<CVisibilityPlugins::AlphaObjectInfo> *node;
|
||||
|
||||
for(i = 0; i < ms_nNoOfVisibleEntities; i++)
|
||||
ms_aVisibleEntityPtrs[i]->PreRender();
|
||||
|
||||
for(i = 0; i < ms_nNoOfInVisibleEntities; i++)
|
||||
ms_aInVisibleEntityPtrs[i]->PreRender();
|
||||
|
||||
for(node = CVisibilityPlugins::m_alphaEntityList.tail.prev;
|
||||
node != &CVisibilityPlugins::m_alphaEntityList.head;
|
||||
node = node->prev)
|
||||
((CEntity*)node->item.entity)->PreRender();
|
||||
|
||||
CHeli::SpecialHeliPreRender();
|
||||
CShadows::RenderExtraPlayerShadows();
|
||||
}
|
||||
|
||||
void
|
||||
CRenderer::RenderOneRoad(CEntity *e)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue