Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CGameView Class Reference

#include <GameView.h>

Inheritance diagram for CGameView:
Scene

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 ()
 
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
 
float GetCullFOV () 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
 

Detailed Description

Definition at line 37 of file GameView.h.

Constructor & Destructor Documentation

CGameView::CGameView ( CGame pGame)

Definition at line 354 of file GameView.cpp.

CGameView::~CGameView ( )

Definition at line 372 of file GameView.cpp.

Member Function Documentation

void CGameView::BeginFrame ( )

Definition at line 473 of file GameView.cpp.

void CGameView::CameraFollow ( entity_id_t  entity,
bool  firstPerson 
)

Definition at line 1030 of file GameView.cpp.

void CGameView::CheckLightEnv ( )
private

Definition at line 579 of file GameView.cpp.

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.

Definition at line 504 of file GameView.cpp.

CCamera * CGameView::GetCamera ( )

Definition at line 390 of file GameView.cpp.

float CGameView::GetCameraX ( )

Definition at line 952 of file GameView.cpp.

float CGameView::GetCameraZ ( )

Definition at line 959 of file GameView.cpp.

CCinemaManager * CGameView::GetCinema ( )

Definition at line 395 of file GameView.cpp.

float CGameView::GetCullFOV ( ) const

Definition at line 1056 of file GameView.cpp.

float CGameView::GetFar ( ) const

Definition at line 1046 of file GameView.cpp.

entity_id_t CGameView::GetFollowedEntity ( )

Definition at line 1036 of file GameView.cpp.

float CGameView::GetFOV ( ) const

Definition at line 1051 of file GameView.cpp.

CLOSTexture & CGameView::GetLOSTexture ( )
virtual

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

Implements Scene.

Definition at line 400 of file GameView.cpp.

float CGameView::GetNear ( ) const

Definition at line 1041 of file GameView.cpp.

CObjectManager & CGameView::GetObjectManager ( ) const

Definition at line 385 of file GameView.cpp.

JSObject* CGameView::GetScript ( )
CVector3D CGameView::GetSmoothPivot ( CCamera camera) const

Definition at line 667 of file GameView.cpp.

CTerritoryTexture & CGameView::GetTerritoryTexture ( )
virtual

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

Implements Scene.

Definition at line 405 of file GameView.cpp.

InReaction CGameView::HandleEvent ( const SDL_Event_ ev)

Definition at line 1077 of file GameView.cpp.

int CGameView::Initialize ( )

Definition at line 410 of file GameView.cpp.

void CGameView::MoveCameraTarget ( const CVector3D target)

Definition at line 966 of file GameView.cpp.

CGameView::NONCOPYABLE ( CGameView  )
private
void CGameView::RegisterInit ( )

Definition at line 461 of file GameView.cpp.

void CGameView::Render ( )

Definition at line 496 of file GameView.cpp.

void CGameView::ResetCameraAngleZoom ( )

Definition at line 1012 of file GameView.cpp.

void CGameView::ResetCameraTarget ( const CVector3D target)

Definition at line 988 of file GameView.cpp.

void CGameView::SetCameraProjection ( )

Definition at line 1061 of file GameView.cpp.

void CGameView::SetViewport ( const SViewPort vp)

Definition at line 379 of file GameView.cpp.

void CGameView::UnloadResources ( )
private

Definition at line 602 of file GameView.cpp.

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.

Definition at line 672 of file GameView.cpp.

Member Data Documentation

CGameViewImpl* CGameView::m
private

Definition at line 41 of file GameView.h.


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