Camera Class Reference

Class to control the camera during conversations. More...

List of all members.

High Level Methods

void SetFOV (float angle)
 Set the field of view (FOV) of the camera to the specified angle.
void SetClippingRect (Rect r)
 Set the size of the camera viewport.
void SetPosition (Vector v)
 Set the position of the camera to the specified point.
void SetFarClipPlane (float dist)
 Set the far clip plane distance to the specified value.
void EnableFarClipPlane ()
 Enable the far clip plane.
void DisableFarClipPlane ()
 Disable the far clip plane.
void Move (Vector v, float time=0.0)
 Move the camera along the given vector.
void MoveForward (float distance, float time=0.0)
 Move the camera along its forward vector.
void MoveBackward (float distance, float time=0.0)
 Move the camera along its backward vector.
void MoveLeft (float distance, float time=0.0)
 Move the camera along its left vector.
void MoveRight (float distance, float time=0.0)
 Move the camera along its right vector.
void MoveUp (float distance, float time=0.0)
 Move the camera along its up vector.
void MoveDown (float distance, float time=0.0)
 Move the camera along its down vector.
void LookAt (Vector v)
 Rotate the camera to face the given point.

Low Level Methods

float GetFOV ()
 Returns the field of view in radians.
Rect GetClippingRect ()
 Returns the size of the camera viewport.
Vector GetPosition ()
 Returns the position of the camera.
float GetFarClipPlane ()
 Returns the far clip plane distance.

Detailed Description

Class to control the camera during conversations.


Member Function Documentation

void Camera::SetFOV ( float  angle)

Set the field of view (FOV) of the camera to the specified angle.

Parameters:
angleField of view in radians.
void Camera::Move ( Vector  v,
float  time = 0.0 
)

Move the camera along the given vector.

Parameters:
vVector specifying the direction and distance to move.
timefloat value specifying the time the movement will take.
void Camera::MoveForward ( float  distance,
float  time = 0.0 
)

Move the camera along its forward vector.

Parameters:
distancefloat value specifying the distance to move (in texels).
timefloat value specifying the time the movement will take.
void Camera::MoveBackward ( float  distance,
float  time = 0.0 
)

Move the camera along its backward vector.

Parameters:
distancefloat value specifying the distance to move (in texels).
timefloat value specifying the time the movement will take.
void Camera::MoveLeft ( float  distance,
float  time = 0.0 
)

Move the camera along its left vector.

Parameters:
distancefloat value specifying the distance to move (in texels).
timefloat value specifying the time the movement will take.
void Camera::MoveRight ( float  distance,
float  time = 0.0 
)

Move the camera along its right vector.

Parameters:
distancefloat value specifying the distance to move (in texels).
timefloat value specifying the time the movement will take.
void Camera::MoveUp ( float  distance,
float  time = 0.0 
)

Move the camera along its up vector.

Parameters:
distancefloat value specifying the distance to move (in texels).
timefloat value specifying the time the movement will take.
void Camera::MoveDown ( float  distance,
float  time = 0.0 
)

Move the camera along its down vector.

Parameters:
distancefloat value specifying the distance to move (in texels).
timefloat value specifying the time the movement will take.