#include <Camera.h>
Class Camera
Inherits from ListenerObject
Represents the player's view point.
Definition at line 49 of file Camera.h.
# focus()
Focus the camera on the focus actor if any.
Definition at line 326 of file Camera.c.
# geDisplacement()
Retrieve the constant displacement that is added to the camera's position.
- Returns
- Displacement vector
Definition at line 200 of file Camera.c.
# getCameraEffectManager()
Retrieve the camera's current special effects manager
- Returns
- Camera's current special effects manager
Definition at line 114 of file Camera.c.
# getCameraFrustum()
Retrieve the camera's frustum configuration.
- Returns
- Camera's frustum configuration
Definition at line 305 of file Camera.c.
# getCameraMovementManager()
Retrieve the camera's current movement manager
- Returns
- Camera's current movement manager
Definition at line 92 of file Camera.c.
# getFocusActor()
Actor Camera::getFocusActor |
( |
| ) |
|
Retrieve the actor that the camera is following.
- Returns
- focusActor: Actor being followed
Definition at line 149 of file Camera.c.
# getFocusActorPositionDisplacement()
Vector3D Camera::getFocusActorPositionDisplacement |
( |
| ) |
|
Retrieve the displacement that is added to the camera's position relative to the focus actor's position.
- Returns
- Displacement vector
Definition at line 181 of file Camera.c.
# getLastDisplacement()
Vector3D Camera::getLastDisplacement |
( |
| ) |
|
Retrieve the camera's change of position in the last game cycle
- Returns
- Camera's change of position in the last game cycle
Definition at line 312 of file Camera.c.
# getOptical()
Retrieve the optical configuration values used for projections.
- Returns
- Optical struct with the configuration values used for projections
Definition at line 216 of file Camera.c.
# getPosition()
Retrieve the camera's position.
- Returns
- Camera's position
Definition at line 268 of file Camera.c.
# getRotation()
Retrieve the camera's rotation.
- Returns
- Camera's rotation
Definition at line 298 of file Camera.c.
# getStageSize()
Size Camera::getStageSize |
( |
| ) |
|
Retrieve the stage's cached size.
- Returns
- Stage's size
Definition at line 121 of file Camera.c.
# getTransformation()
Retrieve the camera's transformation.
- Returns
- Camera's transformation
Definition at line 231 of file Camera.c.
# getTransformationFlags()
uint8 Camera::getTransformationFlags |
( |
| ) |
|
Retrieve the transformation flags that keep track of changes in the camera's position and rotation during the current game cycle.
- Returns
- Transformation flags
Definition at line 319 of file Camera.c.
# print()
Print the camera's status.
- Parameters
-
x | Screen x coordinate where to print |
y | Screen y coordinate where to print |
inPixels | If true, the spatial data is printed in pixel units; in meter, otherwise |
Definition at line 382 of file Camera.c.
# reset()
Reset the camera's state.
Definition at line 41 of file Camera.c.
# rotate()
void Camera::rotate |
( |
Rotation | rotation | ) |
|
Add a rotation the camera's current rotation.
- Parameters
-
Definition at line 287 of file Camera.c.
# setCameraEffectManager()
Set the manager of the camera's special effects.
- Parameters
-
cameraEffectManager | Special effects manager |
Definition at line 99 of file Camera.c.
# setCameraMovementManager()
Set the manager of the camera's properties.
- Parameters
-
cameraMovementManager | Movement manager |
Definition at line 77 of file Camera.c.
# setDisplacement()
void Camera::setDisplacement |
( |
Vector3D | displacement | ) |
|
Set a constant displacement to be added to the camera's position.
- Parameters
-
displacement | Displacement vector |
Definition at line 193 of file Camera.c.
# setFocusActor()
void Camera::setFocusActor |
( |
Actor | focusActor | ) |
|
Register the actor that the camera must follow.
- Parameters
-
focusActor | Actor to follow |
Definition at line 135 of file Camera.c.
# setFocusActorPositionDisplacement()
void Camera::setFocusActorPositionDisplacement |
( |
Vector3D | focusActorPositionDisplacement | ) |
|
Register a displacement to be added to the camera's position relative to the focus actor's position.
- Parameters
-
focusActorPositionDisplacement | Displacement vector |
Definition at line 171 of file Camera.c.
# setOptical()
void Camera::setOptical |
( |
Optical | optical | ) |
|
Set the optical configuration values used for projections.
- Parameters
-
optical | configuration struct with the values used for projections |
Definition at line 207 of file Camera.c.
# setPosition()
Set the camera's position.
- Parameters
-
position | 3D vector |
cap | Cap the camera's position within the stage's size if true |
Definition at line 238 of file Camera.c.
# setRotation()
void Camera::setRotation |
( |
Rotation | rotation | ) |
|
Set the camera's rotation.
- Parameters
-
rotation | Rotation to assign to the camera |
Definition at line 275 of file Camera.c.
# setStageSize()
void Camera::setStageSize |
( |
Size | size | ) |
|
Save the stage's size.
- Parameters
-
Definition at line 128 of file Camera.c.
# setTransformation()
Set the camera's transformation.
- Parameters
-
transformation | New transformation |
Definition at line 223 of file Camera.c.
# setup()
Setup the camera's optical and frustum configuration that determine the results from 3D to 2D projection.
- Parameters
-
pixelOptical | Configuration struct for the projection functions |
cameraFrustum | Player's point of view configuration |
Definition at line 66 of file Camera.c.
# startEffect()
void Camera::startEffect |
( |
int32 | effect, |
|
|
| ... ) |
Start a camera effect.
- Parameters
-
effect | Code of the effect to start |
... | Variable arguments list depending on the effect to start |
Definition at line 364 of file Camera.c.
# stopEffect()
void Camera::stopEffect |
( |
int32 | effect | ) |
|
Stop a camera effect.
- Parameters
-
effect | Code of the effect to stop |
Definition at line 374 of file Camera.c.
# translate()
Add a displacement the camera's current position.
- Parameters
-
displacement | Displacement vector |
cap | Cap the camera's position within the stage's size if true |
Definition at line 253 of file Camera.c.
# unsetFocusActor()
void Camera::unsetFocusActor |
( |
| ) |
|
Stop following any actor.
Definition at line 161 of file Camera.c.
# cameraEffectManager
# cameraFrustum
# cameraMovementManager
# displacement
Displacement applied to the position when it changes.
Definition at line 58 of file Camera.h.
# invertedRotation
# lastDisplacement
Saves the camera's change of position in the last game cycle.
Definition at line 61 of file Camera.h.
# optical
Optical configuration values used for projections.
Definition at line 52 of file Camera.h.
# stageSize
Cached stage's size used to optionally limit the camera's movement.
Definition at line 73 of file Camera.h.
# transformation
# transformationFlags
uint8 Camera::transformationFlags |
|
private |
Transformation flags to keep track of changes in the camera's position and rotation during the current game cycle
Definition at line 80 of file Camera.h.
The documentation for this class was generated from the following files: