Overview   Project   Class   Tree   Deprecated   Index 
Marble and Madness
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

common
Class CCamera

   in CCamera.h
   in CCamera.cpp

class CCamera

Camera per la vista OpenGL
basata sul tutorial http://www.gametutorials.com/Tutorials/OpenGL/OpenGL_Pg1.htm */


Field Summary
 Point3< float > m_vcentrorotazione
          centro di rotazione
 Point3< float > m_vPosition
          la posizione della camera
 Point3< float > m_vUpVector
          vettore Up della camera
 Point3< float > m_vView
          punto di vista della camera
 
Constructor Summary
CCamera()
          This is the class constructor
 
Method Summary
 void Draw()
          Posizione la camera dell'ambiente OpenGl
 void MoveCamera( float speed )
          This will move the camera forward or backward depending on the speed
 void PositionCamera( float positionX, float positionY, float positionZ, float viewX, float viewY, float viewZ, float upVectorX, float upVectorY, float upVectorZ )
          This function sets the camera's position and view and up vVector.
 void RotateAroundPoint( Point3< float > vCenter, float angle, float x, float y, float z )
          This rotates the position around a given point
 void RotateView( float angle, float x, float y, float z )
          This rotates the view around the position using an axis-angle rotation
 

Field Detail

m_vcentrorotazione

public Point3< float > m_vcentrorotazione;
centro di rotazione

m_vPosition

public Point3< float > m_vPosition;
la posizione della camera

m_vUpVector

public Point3< float > m_vUpVector;
vettore Up della camera

m_vView

public Point3< float > m_vView;
punto di vista della camera


Constructor Detail

CCamera

public CCamera();
This is the class constructor


Method Detail

Draw

public void Draw();
Posizione la camera dell'ambiente OpenGl

MoveCamera

public void MoveCamera( float speed );
This will move the camera forward or backward depending on the speed

PositionCamera

public void PositionCamera( float positionX, float positionY, float positionZ, float viewX, float viewY, float viewZ, float upVectorX, float upVectorY, float upVectorZ );
This function sets the camera's position and view and up vVector.

RotateAroundPoint

public void RotateAroundPoint( Point3< float > vCenter, float angle, float x, float y, float z );
This rotates the position around a given point

RotateView

public void RotateView( float angle, float x, float y, float z );
This rotates the view around the position using an axis-angle rotation

 Overview   Project   Class   Tree   Deprecated   Index 
Marble and Madness
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD