|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::UCamera Class ReferenceGame interface for manipulating Camera.
More...
#include <u_camera.h>
Inheritance diagram for NL3D::UCamera:
List of all members.
Public Methods |
|
virtual void | setFrustum (const CFrustum &f)=0 |
| Set the frustum of the camera. More...
|
virtual const CFrustum & | getFrustum () const=0 |
| Get the frustum of the camera. More...
|
virtual void | setFrustum (float left, float right, float bottom, float top, float znear, float zfar, bool perspective=true)=0 |
| Setup the camera mode as a perspective/ortho camera. NB: znear and zfar must be >0 (if perspective). More...
|
virtual void | setFrustum (float width, float height, float znear, float zfar, bool perspective=true)=0 |
| Setup the camera mode as a perspective/ortho camera. NB: znear and zfar must be >0 (if perspective). More...
|
virtual void | getFrustum (float &left, float &right, float &bottom, float &top, float &znear, float &zfar) const=0 |
| Get the camera frustum. More...
|
virtual bool | isOrtho () const=0 |
| Is a ortho camera? More...
|
virtual bool | isPerspective () const=0 |
| Is a perspective camera? More...
|
virtual void | setPerspective (float fov, float aspectRatio, float znear, float zfar)=0 |
| Setup a perspective camera, giving a fov in radians. More...
|
Static Public Attributes |
|
const float | DefLx = 0.26f |
const float | DefLy = 0.2f |
const float | DefLzNear = 0.15f |
const float | DefLzFar = 1000.0f |
Protected Methods |
|
| UCamera () |
virtual | ~UCamera () |
Detailed Description
Game interface for manipulating Camera.
-
Author:
-
Lionel Berenguier , Nevrax France
-
Date:
-
2001
Definition at line 45 of file u_camera.h.
Constructor & Destructor Documentation
NL3D::UCamera::UCamera |
( |
|
) |
[inline, protected] |
|
virtual NL3D::UCamera::~UCamera |
( |
|
) |
[inline, protected, virtual] |
|
Member Function Documentation
virtual void NL3D::UCamera::getFrustum |
( |
float & |
left, |
|
|
float & |
right, |
|
|
float & |
bottom, |
|
|
float & |
top, |
|
|
float & |
znear, |
|
|
float & |
zfar |
|
) |
const [pure virtual] |
|
virtual const CFrustum& NL3D::UCamera::getFrustum |
( |
|
) |
const [pure virtual] |
|
virtual bool NL3D::UCamera::isOrtho |
( |
|
) |
const [pure virtual] |
|
virtual bool NL3D::UCamera::isPerspective |
( |
|
) |
const [pure virtual] |
|
virtual void NL3D::UCamera::setFrustum |
( |
float |
width, |
|
|
float |
height, |
|
|
float |
znear, |
|
|
float |
zfar, |
|
|
bool |
perspective = true |
|
) |
[pure virtual] |
|
|
Setup the camera mode as a perspective/ortho camera. NB: znear and zfar must be >0 (if perspective).
Implemented in NL3D::CCameraUser. |
virtual void NL3D::UCamera::setFrustum |
( |
float |
left, |
|
|
float |
right, |
|
|
float |
bottom, |
|
|
float |
top, |
|
|
float |
znear, |
|
|
float |
zfar, |
|
|
bool |
perspective = true |
|
) |
[pure virtual] |
|
|
Setup the camera mode as a perspective/ortho camera. NB: znear and zfar must be >0 (if perspective).
Implemented in NL3D::CCameraUser. |
virtual void NL3D::UCamera::setFrustum |
( |
const CFrustum & |
f |
) |
[pure virtual] |
|
virtual void NL3D::UCamera::setPerspective |
( |
float |
fov, |
|
|
float |
aspectRatio, |
|
|
float |
znear, |
|
|
float |
zfar |
|
) |
[pure virtual] |
|
|
Setup a perspective camera, giving a fov in radians.
-
Parameters:
-
fov |
the horizontal angle of view, in radians. (Pi/2 as example) |
aspectRatio |
the ratio horizontal/vertical (1.33 as example). |
znear |
the front clipping plane distance. |
zfar |
the back clipping plane distance. |
Implemented in NL3D::CCameraUser. |
Member Data Documentation
const float NL3D::UCamera::DefLx = 0.26f [static]
|
|
const float NL3D::UCamera::DefLy = 0.2f [static]
|
|
const float NL3D::UCamera::DefLzFar = 1000.0f [static]
|
|
const float NL3D::UCamera::DefLzNear = 0.15f [static]
|
|
The documentation for this class was generated from the following files:
|
|