#include <trav_scene.h>
Inheritance diagram for NL3D::CTravCameraScene:
Definition at line 67 of file trav_scene.h.
Public Member Functions | |
CTravCameraScene () | |
Constructor. | |
void | setCamMatrix (const NLMISC::CMatrix &camMatrix) |
Setup the camera matrix (a translation/rotation matrix). | |
void | setFrustum (float width, float height, float znear, float zfar, bool perspective=true) |
Setup the camera mode as a perspective/ortho camera. NB: znear and zfar must be >0 (if perspective). | |
void | setFrustum (float left, float right, float bottom, float top, float znear, float zfar, bool perspective=true) |
Setup the camera mode as a perspective/ortho camera. NB: znear and zfar must be >0 (if perspective). | |
Data Fields | |
CScene * | Scene |
Protected Member Functions | |
void | update () |
update the dependent information. |
|
Constructor.
Definition at line 109 of file trav_scene.h. References CamLook, CamMatrix, CamPos, NLMISC::CMatrix::identity(), and setFrustum().
00110 { 00111 setFrustum(1.0f, 1.0f, 0.01f, 1.0f); 00112 CamMatrix.identity(); 00113 ViewMatrix.identity(); 00114 CamPos= NLMISC::CVector::Null; 00115 CamLook= NLMISC::CVector::Null; 00116 } |
|
Setup the camera matrix (a translation/rotation matrix).
Definition at line 102 of file trav_scene.h. References CamMatrix. Referenced by NL3D::CScene::render().
00103 { 00104 CamMatrix= camMatrix; 00105 } |
|
Setup the camera mode as a perspective/ortho camera. NB: znear and zfar must be >0 (if perspective).
Definition at line 97 of file trav_scene.h. References height, setFrustum(), and width.
00098 { 00099 setFrustum(-width/2, width/2, -height/2, height/2, znear, zfar, perspective); 00100 } |
|
Setup the camera mode as a perspective/ortho camera. NB: znear and zfar must be >0 (if perspective).
Definition at line 86 of file trav_scene.h. References Bottom, Far, Near, Perspective, and Right. Referenced by CTravCameraScene(), NL3D::CScene::render(), and setFrustum().
|
|
update the dependent information.
Definition at line 122 of file trav_scene.h. References CamLook, CamMatrix, CamPos, NLMISC::CMatrix::getPos(), NLMISC::CMatrix::inverted(), and NLMISC::CMatrix::mulVector().
|
|
Definition at line 75 of file trav_scene.h. Referenced by setFrustum(), NL3D::CWaterModel::traverseRender(), and NL3D::CFlareModel::traverseRender(). |
|
Definition at line 80 of file trav_scene.h. Referenced by NL3D::CLandscapeModel::clipAndRenderLandscape(), CTravCameraScene(), and update(). |
|
Definition at line 77 of file trav_scene.h. Referenced by CTravCameraScene(), setCamMatrix(), NL3D::CWaterModel::traverseRender(), NL3D::CFlareModel::traverseRender(), and update(). |
|
|
Definition at line 75 of file trav_scene.h. Referenced by NL3D::CWaterModel::computeClippedPoly(), setFrustum(), NL3D::CWaterModel::traverseRender(), and NL3D::CFlareModel::traverseRender(). |
|
Definition at line 75 of file trav_scene.h. Referenced by NL3D::CWaterModel::traverseRender(), and NL3D::CFlareModel::traverseRender(). |
|
Definition at line 75 of file trav_scene.h. Referenced by NL3D::CWaterModel::computeClippedPoly(), setFrustum(), NL3D::CWaterModel::traverseRender(), and NL3D::CFlareModel::traverseRender(). |
|
Definition at line 76 of file trav_scene.h. Referenced by setFrustum(). |
|
Definition at line 75 of file trav_scene.h. Referenced by NL3D::CWaterModel::computeClippedPoly(), setFrustum(), NL3D::CWaterModel::traverseRender(), and NL3D::CFlareModel::traverseRender(). |
|
Definition at line 55 of file trav_scene.h. Referenced by NL3D::CScene::CScene(), NL3D::CMeshMRMSkinnedGeom::profileSceneRender(), NL3D::CMeshMRMGeom::profileSceneRender(), and NL3D::CMeshGeom::profileSceneRender(). |
|
Definition at line 75 of file trav_scene.h. Referenced by NL3D::CWaterModel::computeClippedPoly(), NL3D::CWaterModel::traverseRender(), and NL3D::CFlareModel::traverseRender(). |
|
Definition at line 78 of file trav_scene.h. Referenced by NL3D::CWaterModel::computeClippedPoly(), NL3D::CParticleSystemModel::doAnimate(), NL3D::CWaterModel::traverseRender(), and NL3D::CFlareModel::traverseRender(). |