#include <stage.hh>
Public Member Functions | |
void | addPitch (double pitch) |
void | addPose (double x, double y, double z) |
void | addYaw (double yaw) |
virtual void | Draw (void) const |
double | farClip (void) const |
void | forward (double amount) |
double | horizFov (void) const |
void | Load (Worldfile *wf, int sec) |
void | move (double x, double y, double z) |
double | nearClip (void) const |
PerspectiveCamera (void) | |
double | realDistance (double z_buf_val) const |
void | reset () |
void | Save (Worldfile *wf, int sec) |
void | scroll (double dy) |
void | setAspect (double aspect) |
update vertical fov based on window aspect and current horizontal fov | |
void | setClip (double near, double far) |
void | setFov (double horiz_fov, double vert_fov) |
void | setPitch (double pitch) |
void | setPose (double x, double y, double z) |
virtual void | SetProjection (void) const |
void | setYaw (double yaw) |
void | strafe (double amount) |
void | update (void) |
double | vertFov (void) const |
Private Attributes | |
double | _aspect |
double | _horiz_fov |
double | _vert_fov |
double | _z_far |
double | _z_near |
PerspectiveCamera::PerspectiveCamera | ( | void | ) |
void Stg::PerspectiveCamera::addPitch | ( | double | pitch | ) | [inline] |
void Stg::PerspectiveCamera::addPose | ( | double | x, |
double | y, | ||
double | z | ||
) | [inline] |
void Stg::PerspectiveCamera::addYaw | ( | double | yaw | ) | [inline] |
void PerspectiveCamera::Draw | ( | void | ) | const [virtual] |
Implements Stg::Camera.
double Stg::PerspectiveCamera::farClip | ( | void | ) | const [inline] |
void PerspectiveCamera::forward | ( | double | amount | ) |
double Stg::PerspectiveCamera::horizFov | ( | void | ) | const [inline] |
void PerspectiveCamera::Load | ( | Worldfile * | wf, |
int | sec | ||
) | [virtual] |
Implements Stg::Camera.
void PerspectiveCamera::move | ( | double | x, |
double | y, | ||
double | z | ||
) |
double Stg::PerspectiveCamera::nearClip | ( | void | ) | const [inline] |
double Stg::PerspectiveCamera::realDistance | ( | double | z_buf_val | ) | const [inline] |
void Stg::PerspectiveCamera::reset | ( | void | ) | [inline, virtual] |
Implements Stg::Camera.
void PerspectiveCamera::Save | ( | Worldfile * | wf, |
int | sec | ||
) |
void Stg::PerspectiveCamera::scroll | ( | double | dy | ) | [inline] |
void Stg::PerspectiveCamera::setAspect | ( | double | aspect | ) | [inline] |
void Stg::PerspectiveCamera::setClip | ( | double | near, |
double | far | ||
) | [inline] |
void Stg::PerspectiveCamera::setFov | ( | double | horiz_fov, |
double | vert_fov | ||
) | [inline] |
void Stg::PerspectiveCamera::setPitch | ( | double | pitch | ) | [inline] |
void Stg::PerspectiveCamera::setPose | ( | double | x, |
double | y, | ||
double | z | ||
) | [inline] |
void PerspectiveCamera::SetProjection | ( | void | ) | const [virtual] |
Implements Stg::Camera.
void Stg::PerspectiveCamera::setYaw | ( | double | yaw | ) | [inline] |
void PerspectiveCamera::strafe | ( | double | amount | ) |
void PerspectiveCamera::update | ( | void | ) |
double Stg::PerspectiveCamera::vertFov | ( | void | ) | const [inline] |
double Stg::PerspectiveCamera::_aspect [private] |
double Stg::PerspectiveCamera::_horiz_fov [private] |
double Stg::PerspectiveCamera::_vert_fov [private] |
double Stg::PerspectiveCamera::_z_far [private] |
double Stg::PerspectiveCamera::_z_near [private] |