#include <Cameraf.h>
Public Member Functions | |
Cameraf () | |
virtual | ~Cameraf () |
GLvoid | getPositionf (GLfloat pos[3]) |
GLvoid | getRotationf (GLfloat rot[3]) |
GLvoid | setPositionf (GLfloat x, GLfloat y, GLfloat z) |
GLvoid | setRotationf (GLfloat anglex, GLfloat angley, GLfloat anglez) |
GLvoid | lookAtf (GLfloat centerx, GLfloat centery, GLfloat centerz, GLfloat anglez) |
GLvoid | activatef (GLvoid) |
ES3D::Cameraf::Cameraf | ( | ) |
Constructor
ES3D::Cameraf::~Cameraf | ( | ) | [virtual] |
Destructor
GLvoid ES3D::Cameraf::activatef | ( | GLvoid | ) |
Activates this camera. Has to be called before any rendering.
GLvoid ES3D::Cameraf::getPositionf | ( | GLfloat | pos[3] | ) |
Retrives the current position of this camera.
pos | the array to store the current position |
GLvoid ES3D::Cameraf::getRotationf | ( | GLfloat | rot[3] | ) |
Retrives the current rotation of this camera.
rot | the array to store the current rotation |
GLvoid ES3D::Cameraf::lookAtf | ( | GLfloat | centerx, | |
GLfloat | centery, | |||
GLfloat | centerz, | |||
GLfloat | anglez | |||
) |
Rotates the camera to look at the center from the current position.
centerx | x coordiante of the point to look at | |
centery | y coordiante of the point to look at | |
centerz | z coordiante of the point to look at | |
anglez | z rotation of the camers |
GLvoid ES3D::Cameraf::setPositionf | ( | GLfloat | x, | |
GLfloat | y, | |||
GLfloat | z | |||
) |
Sets the position of the camera.
x | the x coordiante | |
y | the y coordiante | |
z | the z coordiante |
GLvoid ES3D::Cameraf::setRotationf | ( | GLfloat | anglex, | |
GLfloat | angley, | |||
GLfloat | anglez | |||
) |
Sets the position of the camera.
anglex | the x angle | |
angley | the y angle | |
anglez | the z angle |