Public Member Functions | |
void | applyGL () |
void | applyVelocity (float dt=1.f) |
float | getPitch () |
float | getX () |
float | getY () |
float | getYaw () |
float | getZ () |
void | rotate (float yaw, float pitch) |
void | setForwardVelocity (float forwardVel) |
void | setPitch (float pitch) |
void | setSidewaysVelocity (float sidewaysVel) |
void | setTurnVelocity (float turnVel) |
void | setUpVelocity (float upVel) |
void | setVelocity (float forwardVel, float upVel, float sidewaysVel, float turnVel) |
void | setXYZ (float x, float y, float z) |
void | setYaw (float yaw) |
void | translate (float forward, float up, float sideways) |
Viewpoint () | |
Private Attributes | |
float | mPitch |
float | mVelForward |
float | mVelSide |
float | mVelTurn |
float | mVelUp |
float | mX |
float | mY |
float | mYaw |
float | mZ |
Definition at line 143 of file StructureGL.h.
StructureGL::Viewpoint::Viewpoint | ( | ) | [inline] |
Definition at line 145 of file StructureGL.h.
void StructureGL::Viewpoint::applyGL | ( | ) |
Definition at line 1049 of file StructureGL.cpp.
void StructureGL::Viewpoint::applyVelocity | ( | float | dt = 1.f | ) |
Definition at line 1057 of file StructureGL.cpp.
float StructureGL::Viewpoint::getPitch | ( | ) | [inline] |
Definition at line 184 of file StructureGL.h.
float StructureGL::Viewpoint::getX | ( | ) | [inline] |
Definition at line 187 of file StructureGL.h.
float StructureGL::Viewpoint::getY | ( | ) | [inline] |
Definition at line 190 of file StructureGL.h.
float StructureGL::Viewpoint::getYaw | ( | ) | [inline] |
Definition at line 181 of file StructureGL.h.
float StructureGL::Viewpoint::getZ | ( | ) | [inline] |
Definition at line 193 of file StructureGL.h.
void StructureGL::Viewpoint::rotate | ( | float | yaw, |
float | pitch | ||
) |
Definition at line 1038 of file StructureGL.cpp.
void StructureGL::Viewpoint::setForwardVelocity | ( | float | forwardVel | ) | [inline] |
Definition at line 167 of file StructureGL.h.
void StructureGL::Viewpoint::setPitch | ( | float | pitch | ) | [inline] |
Definition at line 156 of file StructureGL.h.
void StructureGL::Viewpoint::setSidewaysVelocity | ( | float | sidewaysVel | ) | [inline] |
Definition at line 170 of file StructureGL.h.
void StructureGL::Viewpoint::setTurnVelocity | ( | float | turnVel | ) | [inline] |
Definition at line 173 of file StructureGL.h.
void StructureGL::Viewpoint::setUpVelocity | ( | float | upVel | ) | [inline] |
Definition at line 176 of file StructureGL.h.
void StructureGL::Viewpoint::setVelocity | ( | float | forwardVel, |
float | upVel, | ||
float | sidewaysVel, | ||
float | turnVel | ||
) | [inline] |
Definition at line 161 of file StructureGL.h.
void StructureGL::Viewpoint::setXYZ | ( | float | x, |
float | y, | ||
float | z | ||
) | [inline] |
Definition at line 148 of file StructureGL.h.
void StructureGL::Viewpoint::setYaw | ( | float | yaw | ) | [inline] |
Definition at line 153 of file StructureGL.h.
void StructureGL::Viewpoint::translate | ( | float | forward, |
float | up, | ||
float | sideways | ||
) |
Definition at line 1030 of file StructureGL.cpp.
float StructureGL::Viewpoint::mPitch [private] |
Definition at line 197 of file StructureGL.h.
float StructureGL::Viewpoint::mVelForward [private] |
Definition at line 198 of file StructureGL.h.
float StructureGL::Viewpoint::mVelSide [private] |
Definition at line 198 of file StructureGL.h.
float StructureGL::Viewpoint::mVelTurn [private] |
Definition at line 198 of file StructureGL.h.
float StructureGL::Viewpoint::mVelUp [private] |
Definition at line 198 of file StructureGL.h.
float StructureGL::Viewpoint::mX [private] |
Definition at line 197 of file StructureGL.h.
float StructureGL::Viewpoint::mY [private] |
Definition at line 197 of file StructureGL.h.
float StructureGL::Viewpoint::mYaw [private] |
Definition at line 197 of file StructureGL.h.
float StructureGL::Viewpoint::mZ [private] |
Definition at line 197 of file StructureGL.h.