ES3D::Cameraf Class Reference

#include <Cameraf.h>

List of all members.

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)


Detailed Description

Camera with basic features.


Constructor & Destructor Documentation

ES3D::Cameraf::Cameraf (  ) 

Constructor

ES3D::Cameraf::~Cameraf (  )  [virtual]

Destructor


Member Function Documentation

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.

Parameters:
pos the array to store the current position

GLvoid ES3D::Cameraf::getRotationf ( GLfloat  rot[3]  ) 

Retrives the current rotation of this camera.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
anglex the x angle
angley the y angle
anglez the z angle


The documentation for this class was generated from the following files:
Generated on Sat May 10 16:30:55 2008 for ES 3D Game SDK Documentation by  doxygen 1.4.7