Camera2d
[Cameras]


Functions

void IND_Camera2d::SetPosition (int pX, int pY)
void IND_Camera2d::SetZoom (float pZoom)
void IND_Camera2d::SetAngle (float pAngle)
int IND_Camera2d::GetPosX ()
 Returns the x position of the camera.
int IND_Camera2d::GetPosY ()
 Returns the y position of the camera.
float IND_Camera2d::GetZoom ()
 Returns the zoom of the camera.
float IND_Camera2d::GetAngle ()
 Returns the angle of the camera.

Detailed Description

Camera for 2d scenarios. Using this class you can control all the parameters of a 2d camera. You can have as many cameras as you want. Use IND_Render::SetCamera2d() method before drawing in order to choose the camera you want to use.

Function Documentation

void IND_Camera2d::SetPosition ( int  pX,
int  pY 
) [inherited]

Parameters:

Operation:

This function sets the position of the camera. In order to see all the screen area the most usual position is to set the position just in the middle of the screen.

void IND_Camera2d::SetZoom ( float  pZoom  )  [inherited]

Parameters:

Operation:

This function makes a zoom. Use this method if you want to zoom in or out the scenary.

Default: 1.0f

void IND_Camera2d::SetAngle ( float  pAngle  )  [inherited]

Parameters:

Operation:

This function sets the angle of the camera. Use this method in order to rotate the scenary.

Default: 0.0f


Generated on Tue Apr 22 16:46:52 2008 for IndieLib by  doxygen 1.5.4