Pyrogenesis  trunk
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CGameView Class Reference

#include <GameView.h>

Inheritance diagram for CGameView:
Inheritance graph
[legend]
Collaboration diagram for CGameView:
Collaboration graph
[legend]

Public Member Functions

virtual void EnumerateObjects (const CFrustum &frustum, SceneCollector *c)
 Send all objects that can be seen when rendering the given frustum to the scene collector. More...
 
virtual CLOSTextureGetLOSTexture ()
 Return the LOS texture to be used for rendering this scene. More...
 
virtual CTerritoryTextureGetTerritoryTexture ()
 Return the territory texture to be used for rendering this scene. More...
 
 CGameView (CGame *pGame)
 
 ~CGameView ()
 
void SetViewport (const SViewPort &vp)
 
void RegisterInit ()
 
int Initialize ()
 
CObjectManagerGetObjectManager () const
 
void Update (const float deltaRealTime)
 Updates all the view information (i.e. More...
 
void BeginFrame ()
 
void Render ()
 
InReaction HandleEvent (const SDL_Event_ *ev)
 
float GetCameraX ()
 
float GetCameraZ ()
 
float GetCameraPosX ()
 
float GetCameraPosY ()
 
float GetCameraPosZ ()
 
float GetCameraRotX ()
 
float GetCameraRotY ()
 
float GetCameraZoom ()
 
void SetCamera (CVector3D Pos, float RotX, float RotY, float Zoom)
 
void MoveCameraTarget (const CVector3D &target)
 
void ResetCameraTarget (const CVector3D &target)
 
void ResetCameraAngleZoom ()
 
void CameraFollow (entity_id_t entity, bool firstPerson)
 
entity_id_t GetFollowedEntity ()
 
CVector3D GetSmoothPivot (CCamera &camera) const
 
float GetNear () const
 
float GetFar () const
 
float GetFOV () const
 
 DECLARE_BOOLEAN_SETTING (Culling)
 
 DECLARE_BOOLEAN_SETTING (LockCullCamera)
 
 DECLARE_BOOLEAN_SETTING (ConstrainCamera)
 
void SetCameraProjection ()
 
CCameraGetCamera ()
 
CCinemaManagerGetCinema ()
 
JSObject * GetScript ()
 

Private Member Functions

 NONCOPYABLE (CGameView)
 
void CheckLightEnv ()
 
void UnloadResources ()
 
- Private Member Functions inherited from Scene
virtual ~Scene ()
 

Private Attributes

CGameViewImplm
 

Constructor & Destructor Documentation

CGameView::CGameView ( CGame pGame)
CGameView::~CGameView ( )

Member Function Documentation

void CGameView::BeginFrame ( )
void CGameView::CameraFollow ( entity_id_t  entity,
bool  firstPerson 
)
void CGameView::CheckLightEnv ( )
private
CGameView::DECLARE_BOOLEAN_SETTING ( Culling  )
CGameView::DECLARE_BOOLEAN_SETTING ( LockCullCamera  )
CGameView::DECLARE_BOOLEAN_SETTING ( ConstrainCamera  )
void CGameView::EnumerateObjects ( const CFrustum frustum,
SceneCollector c 
)
virtual

Send all objects that can be seen when rendering the given frustum to the scene collector.

Parameters
frustumThe frustum that will be used for rendering.
cThe scene collector that should receive objects inside the frustum that are visible.

Implements Scene.

CCamera * CGameView::GetCamera ( )
float CGameView::GetCameraPosX ( )
float CGameView::GetCameraPosY ( )
float CGameView::GetCameraPosZ ( )
float CGameView::GetCameraRotX ( )
float CGameView::GetCameraRotY ( )
float CGameView::GetCameraX ( )
float CGameView::GetCameraZ ( )
float CGameView::GetCameraZoom ( )
CCinemaManager * CGameView::GetCinema ( )
float CGameView::GetFar ( ) const
entity_id_t CGameView::GetFollowedEntity ( )
float CGameView::GetFOV ( ) const
CLOSTexture & CGameView::GetLOSTexture ( )
virtual

Return the LOS texture to be used for rendering this scene.

Implements Scene.

float CGameView::GetNear ( ) const
CObjectManager & CGameView::GetObjectManager ( ) const
JSObject* CGameView::GetScript ( )
CVector3D CGameView::GetSmoothPivot ( CCamera camera) const
CTerritoryTexture & CGameView::GetTerritoryTexture ( )
virtual

Return the territory texture to be used for rendering this scene.

Implements Scene.

InReaction CGameView::HandleEvent ( const SDL_Event_ ev)
int CGameView::Initialize ( )
void CGameView::MoveCameraTarget ( const CVector3D target)
CGameView::NONCOPYABLE ( CGameView  )
private
void CGameView::RegisterInit ( )
void CGameView::Render ( )
void CGameView::ResetCameraAngleZoom ( )
void CGameView::ResetCameraTarget ( const CVector3D target)
void CGameView::SetCamera ( CVector3D  Pos,
float  RotX,
float  RotY,
float  Zoom 
)
void CGameView::SetCameraProjection ( )
void CGameView::SetViewport ( const SViewPort vp)
void CGameView::UnloadResources ( )
private
void CGameView::Update ( const float  deltaRealTime)

Updates all the view information (i.e.

rotate camera, scroll, whatever). This will not change any World information - only the presentation.

Parameters
deltaRealTimeElapsed real time since the last frame.

Member Data Documentation

CGameViewImpl* CGameView::m
private

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