This class represents a camera within a Ovgl::Scene. More...
#include <OvglScene.h>
Public Member Functions | |
void | setPose (Matrix44 *matrix) |
Matrix44 | getPose () |
void | Release () |
Public Attributes | |
Scene * | scene |
CMesh * | cmesh |
Matrix44 | projMat |
std::vector< AudioVoice * > | voices |
This class represents a camera within a Ovgl::Scene.
By setting it as the viewport of a Ovgl::RenderTarget you can render what this camera sees to the render target.
Matrix44 Ovgl::Camera::getPose | ( | ) |
Returns the current pose of the camera.
void Ovgl::Camera::Release | ( | ) |
This function will release control of all memory associated with the camera and it will also remove any reference to it from the scene.
void Ovgl::Camera::setPose | ( | Matrix44 * | matrix ) |
Sets the pose of this camera.
matrix | The matrix which defines the new pose for this camera. |
This is a pointer to the physics scene object that represents the camera within the scene.
This matrix defines the perspective of the camera.
This is a pointer to the scene that this camera was created by and resides in.
std::vector<AudioVoice*> Ovgl::Camera::voices |
This is an array of all audio voices that the camera can hear.