CGameViewImpl::CGameViewImpl |
( |
CGame * |
game | ) |
|
|
inline |
Cache global lighting environment.
This is used to check whether the environment has changed during the last frame, so that vertex data can be updated etc.
bool CGameViewImpl::ConstrainCamera |
Whether the camera movement should be constrained by min/max limits and terrain avoidance.
this camera controls the frustum that is used for culling and shadow calculations
Note that all code that works with camera movements should only change m_ViewCamera. The render functions automatically sync the cull camera to the view camera depending on the value of m_LockCullCamera.
bool CGameViewImpl::Culling |
When true
, culling is enabled so that only models that have a chance of being visible are sent to the renderer.
Otherwise, the entire world is sent to the renderer.
Exposed to JS as gameView.culling
Entity for the camera to follow, or INVALID_ENTITY if none.
bool CGameViewImpl::FollowFirstPerson |
Whether to follow FollowEntity in first-person mode.
CGame* CGameViewImpl::Game |
float CGameViewImpl::HeightMin |
float CGameViewImpl::HeightSmoothness |
int CGameViewImpl::JoystickPanX |
int CGameViewImpl::JoystickPanY |
int CGameViewImpl::JoystickRotateX |
int CGameViewImpl::JoystickRotateY |
int CGameViewImpl::JoystickZoomIn |
int CGameViewImpl::JoystickZoomOut |
bool CGameViewImpl::LockCullCamera |
When true
, the cull camera is locked in place.
When false
, the cull camera follows the view camera.
Exposed to JS as gameView.lockCullCamera
this camera controls the eye position when rendering
float CGameViewImpl::ViewDragSpeed |
float CGameViewImpl::ViewFar |
float CGameViewImpl::ViewFOV |
float CGameViewImpl::ViewNear |
float CGameViewImpl::ViewRotateSpeedModifier |
float CGameViewImpl::ViewRotateXDefault |
float CGameViewImpl::ViewRotateXMax |
float CGameViewImpl::ViewRotateXMin |
float CGameViewImpl::ViewRotateXSpeed |
float CGameViewImpl::ViewRotateYDefault |
float CGameViewImpl::ViewRotateYSpeed |
float CGameViewImpl::ViewRotateYSpeedWheel |
float CGameViewImpl::ViewScrollSpeed |
float CGameViewImpl::ViewScrollSpeedModifier |
float CGameViewImpl::ViewZoomDefault |
float CGameViewImpl::ViewZoomMax |
float CGameViewImpl::ViewZoomMin |
float CGameViewImpl::ViewZoomSpeed |
float CGameViewImpl::ViewZoomSpeedModifier |
float CGameViewImpl::ViewZoomSpeedWheel |
The documentation for this class was generated from the following file: