ScummVM API documentation
hpl::cScene Class Reference
Inheritance diagram for hpl::cScene:
hpl::iUpdateable

Public Member Functions

 cScene (cGraphics *apGraphics, cResources *apResources, cSound *apSound, cPhysics *apPhysics, cSystem *apSystem, cAI *apAI)
 
void Reset ()
 
void UpdateRenderList (float afFrameTime)
 
void Render (cUpdater *apUpdater, float afFrameTime)
 
bool LoadMap2D (tString asFile)
 
void RenderWorld2D (cCamera2D *apCam, cWorld2D *apWorld)
 
void Update (float afTimeStep)
 
void ClearLoadedMaps ()
 
tStringSetGetLoadedMapsSet ()
 
void SetDrawScene (bool abX)
 
bool GetDrawScene ()
 
cScriptVarCreateLocalVar (const tString &asName)
 
cScriptVarGetLocalVar (const tString &asName)
 
tScriptVarMapGetLocalVarMap ()
 
cScriptVarCreateGlobalVar (const tString &asName)
 
cScriptVarGetGlobalVar (const tString &asName)
 
tScriptVarMapGetGlobalVarMap ()
 
cCamera2DCreateCamera2D (unsigned int alW, unsigned int alH)
 
cCamera3DCreateCamera3D (eCameraMoveMode aMoveMode)
 
void DestroyCamera (iCamera *apCam)
 
void SetCamera (iCamera *pCam)
 
iCameraGetCamera ()
 
void SetCameraPosition (const cVector3f &avPos)
 
cVector3f GetCameraPosition ()
 
void SetCameraIsListener (bool abX)
 
cWorld3DLoadWorld3D (const tString &asFile, bool abLoadScript, tWorldLoadFlag aFlags)
 
cWorld3DCreateWorld3D (const tString &asName)
 
void DestroyWorld3D (cWorld3D *apWorld)
 
void SetWorld3D (cWorld3D *apWorld)
 
cWorld3DGetWorld3D ()
 
bool HasLoadedWorld (const tString &asFile)
 
cWorld2DGetWorld2D ()
 
cCollider2DGetCollider2D ()
 
void SetUpdateMap (bool abX)
 
bool GetUpdateMap ()
 
cSystemGetSystem ()
 
- Public Member Functions inherited from hpl::iUpdateable
 iUpdateable (const tString &asName)
 
virtual void OnDraw ()
 
virtual void OnPostSceneDraw ()
 
virtual void OnPostGUIDraw ()
 
virtual void OnPostBufferSwap ()
 
virtual void OnStart ()
 
virtual void OnExit ()
 
const tStringGetName ()
 

Member Function Documentation

◆ UpdateRenderList()

void hpl::cScene::UpdateRenderList ( float  afFrameTime)

Called by cGame

◆ Render()

void hpl::cScene::Render ( cUpdater apUpdater,
float  afFrameTime 
)

Called by cGame

◆ SetCamera()

void hpl::cScene::SetCamera ( iCamera pCam)

This sets the current camera, depending on this one is 2D or 3D a 2D or 3D world will be rendered.

Parameters
pCam

The documentation for this class was generated from the following file: