|
Marble and Madness | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public Point3< float > m_vcentrorotazione;
public Point3< float > m_vPosition;
public Point3< float > m_vUpVector;
public Point3< float > m_vView;
Constructor Detail |
public CCamera();
Method Detail |
public void Draw();
public void MoveCamera( float speed );
public void PositionCamera( float positionX, float positionY, float positionZ, float viewX, float viewY, float viewZ, float upVectorX, float upVectorY, float upVectorZ );
public void RotateAroundPoint( Point3< float > vCenter, float angle, float x, float y, float z );
public void RotateView( float angle, float x, float y, float z );
|
Marble and Madness | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |