|
Pyrogenesis
13997
|
#include <GameView.h>
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 CLOSTexture & | GetLOSTexture () |
| Return the LOS texture to be used for rendering this scene. More... | |
| virtual CTerritoryTexture & | GetTerritoryTexture () |
| 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 () |
| CObjectManager & | GetObjectManager () 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 () |
| CCamera * | GetCamera () |
| CCinemaManager * | GetCinema () |
| JSObject * | GetScript () |
Private Member Functions | |
| NONCOPYABLE (CGameView) | |
| void | CheckLightEnv () |
| void | UnloadResources () |
Private Member Functions inherited from Scene | |
| virtual | ~Scene () |
Private Attributes | |
| CGameViewImpl * | m |
Definition at line 37 of file GameView.h.
| CGameView::CGameView | ( | CGame * | pGame | ) |
Definition at line 354 of file GameView.cpp.
| CGameView::~CGameView | ( | ) |
Definition at line 372 of file GameView.cpp.
| 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.
|
private |
Definition at line 579 of file GameView.cpp.
| CGameView::DECLARE_BOOLEAN_SETTING | ( | Culling | ) |
| CGameView::DECLARE_BOOLEAN_SETTING | ( | LockCullCamera | ) |
| CGameView::DECLARE_BOOLEAN_SETTING | ( | ConstrainCamera | ) |
|
virtual |
Send all objects that can be seen when rendering the given frustum to the scene collector.
| frustum | The frustum that will be used for rendering. |
| c | The 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.
|
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 | ( | ) |
Definition at line 667 of file GameView.cpp.
|
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.
|
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.
|
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.
| deltaRealTime | Elapsed real time since the last frame. |
Definition at line 672 of file GameView.cpp.
|
private |
Definition at line 41 of file GameView.h.
1.8.5