tlp::Camera Class Reference#include <Camera.h>
List of all members. Public Member Functions
- Camera (Coord center=Coord(0, 0, 0), Coord eyes=Coord(0, 0, 10), Coord up=Coord(0,-1, 0), double zoomFactor=0.5, double sceneRadius=10)
- void move (float speed)
- This moves the camera forward or backward depending on the speed.
- void strafeLeftRight (float speed)
- This strafes the camera left and right depending on the speed (-/+).
- void strafeUpDown (float speed)
- This strafes the camera up and down depending on the speed (-/+).
- void rotate (float angle, float x, float y, float z)
- This rotates the camera's eyes around the center depending on the values passed in.
Public Attributes
Constructor & Destructor Documentation
tlp::Camera::Camera |
( |
Coord |
center = Coord(0, 0, 0) , |
|
|
Coord |
eyes = Coord(0, 0, 10) , |
|
|
Coord |
up = Coord(0,-1, 0) , |
|
|
double |
zoomFactor = 0.5 , |
|
|
double |
sceneRadius = 10 | |
|
) |
| | |
Member Function Documentation
void tlp::Camera::move |
( |
float |
speed |
) |
|
This moves the camera forward or backward depending on the speed.
void tlp::Camera::strafeLeftRight |
( |
float |
speed |
) |
|
This strafes the camera left and right depending on the speed (-/+).
void tlp::Camera::strafeUpDown |
( |
float |
speed |
) |
|
This strafes the camera up and down depending on the speed (-/+).
void tlp::Camera::rotate |
( |
float |
angle, |
|
|
float |
x, |
|
|
float |
y, |
|
|
float |
z | |
|
) |
| | |
This rotates the camera's eyes around the center depending on the values passed in.
Member Data Documentation
|