#include <SceneCamera.h>
Inheritance diagram for peon::SceneCamera:
Public Member Functions | |
SceneCamera () | |
Constructor. | |
~SceneCamera () | |
Destructor. | |
void | generateViewFrustum () |
This method is responsible for capturing our current view frustum matrix and dumping the data into 6 planes that we can query. | |
bool | isSphereInFrustum (float x, float y, float z, float fRadius) |
This method is responsible for testing if a sphere has hit a view frustum boundary. | |
void | setPerspectiveProj (float fAspect, float z_min, float z_max) |
This method is responsible for setting the perspective matrix for our camera. | |
void | setViewMatrix (Vector3 &vecEye, Vector3 &vecLookAt, Vector3 &vecUp) |
This method sets our camera viewpoint. | |
void | rotateView (float X, float Y, float Z) |
virtual void | updateView () |
virtual void | onMouseEvent (SDL_Event *pEvent) |
This method can be used to update the view matrix based on the mouse's motion (if need be). | |
Protected Attributes | |
Vector3 | m_vecUp |
the "Up" vector | |
Vector3 | m_vecLookAt |
the "LookAT" vector | |
Plane | m_oFrustumPlanes [6] |
our six view frustum planes |
|
This method is responsible for testing if a sphere has hit a view frustum boundary.
|
|
This method can be used to update the view matrix based on the mouse's motion (if need be).
|
|
This method is responsible for setting the perspective matrix for our camera.
|
|
This method sets our camera viewpoint.
|