Represents the projection matrix and common properties of a perspective or orthographic camera.
#include <gfx.h>

Public Member Functions |
|
| DllExport | Camera () |
| void | setPersp (float f, float asp) |
| Initializes the camera with a perspective
view given a field-of-view value and aspect ratio. |
|
| void | setOrtho (float l, float t, float r, float b) |
| Initializes the camera with a orthographic
view. |
|
| void | setClip (float h, float y) |
| Sets the camera clipping hither and yon
values. |
|
| CameraType | getType (void) |
| Returns the type of camera whether it is a
perspective camera (PERSP_CAM) or orthographic camera (ORTHO_CAM)
|
|
| float | getHither (void) |
| Returns the clipping hither value. |
|
| float | getYon (void) |
| Returns the clipping yon value. |
|
| DllExport void | reset () |
| Resets the projection matrix. |
|
| DllExport void | getProj (float mat[4][4]) |
| Returns the projection matrix. |
|
| DllExport Camera | ( | ) |
| void setPersp | ( | float | f, |
| float | asp | ||
| ) | [inline] |
Initializes the camera with a perspective view given a field-of-view value and aspect ratio.
| void setOrtho | ( | float | l, |
| float | t, | ||
| float | r, | ||
| float | b | ||
| ) | [inline] |
Initializes the camera with a orthographic view.
| void setClip | ( | float | h, |
| float | y | ||
| ) | [inline] |
Sets the camera clipping hither and yon values.
{ hither = h; yon = y; makeMatrix(); }
| CameraType getType | ( | void | ) | [inline] |
Returns the type of camera whether it is a perspective camera (PERSP_CAM) or orthographic camera (ORTHO_CAM)
{ return type; }
| float getHither | ( | void | ) | [inline] |
| float getYon | ( | void | ) | [inline] |
| DllExport void reset | ( | ) |
Resets the projection matrix.
| DllExport void getProj | ( | float | mat[4][4] | ) |
Returns the projection matrix.