#include <Camera.h>
Public Member Functions | |
Camera () | |
virtual | ~Camera () |
void | changeHeading (float degrees) |
void | setHeading (float degrees) |
void | changePitch (float degrees) |
void | setPitch (float degrees) |
void | setPrespective (float dTime=0.0f, bool movePos=true) |
void | setProjection (float angle, int width, int height, float n, float f) |
void | moveForward (float val) |
void | strafeRight (float val) |
void | moveUp (float val) |
void | setPosition (Vec3 position) |
Vec3 | getPosition () |
Vec3 | getUp () |
Vec3 | getDir () |
void | shake (float time, float speed, float intensity) |
void | updateFrustum () |
float | getPitch () |
float | getHeading () |
bool | sphereInFrustum (Vec3 pos, float r) |
Protected Member Functions | |
void | setPos (float dTime) |
Protected Attributes | |
bool | isMoved |
float | m_headingDegrees |
float | m_pitchDegrees |
Quaternion | m_heading |
Quaternion | m_pitch |
Vec3 | m_position |
Vec3 | m_direction |
Vec3 | m_up |
Vec3 | m_strafe |
float | m_shakeTime |
float | m_shakeSpeed |
float | m_shakeIntensity |
GLfloat | m_Frustum [6][4] |
Author: Petter Alstermark, petter@alstermark.com
Definition at line 14 of file Camera.h.
|
Author: Petter Alstermark, petter@alstermark.com Definition at line 9 of file Camera.cpp. References isMoved, m_headingDegrees, m_pitchDegrees, m_shakeIntensity, and m_shakeTime. |
|
Definition at line 21 of file Camera.cpp. |
|
Definition at line 98 of file Camera.cpp. References m_headingDegrees, and m_pitchDegrees. |
|
Definition at line 85 of file Camera.cpp. References m_pitchDegrees. |
|
Definition at line 30 of file Camera.h. References m_direction. |
|
Definition at line 34 of file Camera.h. References m_headingDegrees. Referenced by Menu::drawFrame(), Join::drawFrame(), Menu::setCamera(), and Join::setCamera(). |
|
Definition at line 33 of file Camera.h. References m_pitchDegrees. Referenced by Menu::drawFrame(), Join::drawFrame(), Menu::setCamera(), and Join::setCamera(). |
|
Definition at line 131 of file Camera.cpp. References m_position, Vec3::x, Vec3::y, and Vec3::z. Referenced by Menu::drawFrame(), Join::drawGalaxies(), Menu::setCamera(), and Join::setCamera(). |
|
Definition at line 29 of file Camera.h. References m_up. Referenced by Menu::drawFrame(). |
|
Definition at line 115 of file Camera.cpp. References m_direction, and m_position. |
|
Definition at line 123 of file Camera.cpp. References m_position, and m_up. |
|
Definition at line 110 of file Camera.cpp. References m_headingDegrees. Referenced by Menu::drawFrame(), Join::drawFrame(), Menu::load(), Join::load(), Menu::setCamera(), Join::setCamera(), and Play::setPlayerCam(). |
|
Definition at line 94 of file Camera.cpp. References m_pitchDegrees. Referenced by Menu::drawFrame(), Join::drawFrame(), Menu::load(), Join::load(), Menu::setCamera(), Join::setCamera(), and Play::setPlayerCam(). |
|
Definition at line 61 of file Camera.cpp. References isMoved, m_position, m_shakeIntensity, m_shakeSpeed, m_shakeTime, Vec3::x, Vec3::y, and Vec3::z. Referenced by setPrespective(). |
|
Definition at line 127 of file Camera.cpp. References m_position, Vec3::x, Vec3::y, and Vec3::z. Referenced by MainApp::initialize(), Menu::load(), Join::load(), Menu::setCamera(), Join::setCamera(), and Play::setPlayerCam(). |
|
Definition at line 24 of file Camera.cpp. References Quaternion::createFromAxisAngle(), Quaternion::createMatrix(), isMoved, m_direction, m_heading, m_headingDegrees, m_pitch, m_pitchDegrees, m_strafe, m_up, setPos(), Vec3::x, Vec3::y, and Vec3::z. Referenced by Play::drawFrame(), Menu::drawFrame(), and Join::drawFrame(). Here is the call graph for this function: |
|
Definition at line 77 of file Camera.cpp. Referenced by Menu::drawFrame(), and Join::drawFrame(). |
|
Definition at line 135 of file Camera.cpp. References m_shakeIntensity, m_shakeSpeed, and m_shakeTime. Referenced by Play::grenadeExplode(). |
|
Definition at line 261 of file Camera.cpp. References m_Frustum, Vec3::x, Vec3::y, and Vec3::z. Referenced by Menu::drawCreate(), Menu::drawFrame(), Menu::drawJoin(), Menu::drawMain(), Play::drawParticleSystems(), Play::drawPlayer(), and Menu::drawSettings(). |
|
Definition at line 119 of file Camera.cpp. References m_position, and m_strafe. |
|
Definition at line 141 of file Camera.cpp. References m_Frustum. Referenced by Play::drawFrame(), Menu::drawFrame(), and Join::drawFrame(). |
|
Definition at line 40 of file Camera.h. Referenced by Camera(), setPos(), and setPrespective(). |
|
Definition at line 47 of file Camera.h. Referenced by getDir(), moveForward(), and setPrespective(). |
|
Definition at line 53 of file Camera.h. Referenced by sphereInFrustum(), and updateFrustum(). |
|
Definition at line 44 of file Camera.h. Referenced by setPrespective(). |
|
Definition at line 42 of file Camera.h. Referenced by Camera(), changeHeading(), getHeading(), setHeading(), and setPrespective(). |
|
Definition at line 45 of file Camera.h. Referenced by setPrespective(). |
|
Definition at line 43 of file Camera.h. Referenced by Camera(), changeHeading(), changePitch(), getPitch(), setPitch(), and setPrespective(). |
|
Definition at line 46 of file Camera.h. Referenced by getPosition(), moveForward(), moveUp(), setPos(), setPosition(), and strafeRight(). |
|
|
|
|
|
|
|
Definition at line 49 of file Camera.h. Referenced by setPrespective(), and strafeRight(). |
|
Definition at line 48 of file Camera.h. Referenced by getUp(), moveUp(), and setPrespective(). |