Camera3d
[Cameras]


Functions

void IND_Camera3d::SetPosition (float pX, float pY, float pZ)
void IND_Camera3d::SetPitch (float pAngle)
void IND_Camera3d::SetYaw (float pAngle)
void IND_Camera3d::SetRoll (float pAngle)
void IND_Camera3d::SetZoom (float pZoom)
void IND_Camera3d::MoveWalk (float pWalk)
void IND_Camera3d::MoveFly (float pFly)
void IND_Camera3d::MoveStrafe (float pStrafe)
void IND_Camera3d::SetFov (float pFov)
void IND_Camera3d::SetAspect (float pAspect)
void IND_Camera3d::SetNearClippingPlane (float pNearPlane)
void IND_Camera3d::SetFarClippingPlane (float pFarPlane)
void IND_Camera3d::ToggleOrthoProjection (bool pOrtho)
void IND_Camera3d::SetOrthoWidth (float pOrthoWidth)
void IND_Camera3d::SetOrthoHeight (float pOrthoHeight)
float IND_Camera3d::GetPosX ()
 Returns the x position of the camera.
float IND_Camera3d::GetPosY ()
 Returns the y position of the camera.
float IND_Camera3d::GetPosZ ()
 Returns the z position of the camera.
float IND_Camera3d::GetLookX ()
 Returns the first component of the lookat camera vector.
float IND_Camera3d::GetLookY ()
 Returns the second component of the lookat camera vector.
float IND_Camera3d::GetLookZ ()
 Returns the third component of the lookat camera vector.
float IND_Camera3d::GetUpX ()
 Returns the first component of the up camera vector.
float IND_Camera3d::GetUpY ()
 Returns the second component of the up camera vector.
float IND_Camera3d::GetUpZ ()
 Returns the third component of the up camera vector.
float IND_Camera3d::GetRightX ()
 Returns the first component of the right camera vector.
float IND_Camera3d::GetRightY ()
 Returns the second component of the right camera vector.
float IND_Camera3d::GetRightZ ()
 Returns the third component of the right camera vector.
float IND_Camera3d::GetZoom ()
 Returns the zoom factor of the camera.
float IND_Camera3d::GetFov ()
 Returns the fov of the camera.
float IND_Camera3d::GetAspect ()
 Returns the aspect of the camera.
float IND_Camera3d::GetNearClippingPlane ()
 Returns the near clipping plane of the camera.
float IND_Camera3d::GetFarClippingPlane ()
 Returns the far clipping plane of the camera.
bool IND_Camera3d::IsOrthoProjection ()
 Returns true if the camera has an ortho projection assigned.
float IND_Camera3d::GetOrthoWidth ()
 Returns the width of the camera ortho projection.
float IND_Camera3d::GetOrthoHeight ()
 Returns the height of the camera ortho projection.

Detailed Description

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

Function Documentation

void IND_Camera3d::SetPosition ( float  pX,
float  pY,
float  pZ 
) [inherited]

Parameters:

Operation:

This function sets the position of the camera.

void IND_Camera3d::SetPitch ( float  pPitch  )  [inherited]

Parameters:

Operation:

This function sets the angle of camera rotation around the pitch axis.

Default: 0.0f

void IND_Camera3d::SetYaw ( float  pYaw  )  [inherited]

Parameters:

Operation:

This function sets the angle of camera rotation around the yaw axis.

Default: 0.0f

void IND_Camera3d::SetRoll ( float  pRoll  )  [inherited]

Parameters:

Operation:

This function sets the angle of camera rotation around the roll axis.

Default: 0.0f

void IND_Camera3d::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_Camera3d::MoveWalk ( float  pValue  )  [inherited]

Parameters:

Operation:

This function moves the camera from the current position to the direction it is facing.

void IND_Camera3d::MoveFly ( float  pFly  )  [inherited]

Parameters:

Operation:

This function moves the camera from the current position in up / left right directions.

void IND_Camera3d::MoveStrafe ( float  pStrafe  )  [inherited]

Parameters:

Operation:

This function moves the camera from the current position in right / left directions.

void IND_Camera3d::SetFov ( float  pFov  )  [inherited]

Parameters:

Operation:

This function sets the fov of camera.

Default: D3DX_PI / 4

void IND_Camera3d::SetAspect ( float  pAspect  )  [inherited]

Parameters:

Operation:

This function sets the aspect of camera.

Default: 800 / 600

void IND_Camera3d::SetNearClippingPlane ( float  pNearPlane  )  [inherited]

Parameters:

Operation:

This function sets the distancy to the near plane.

Default: 0.01f

void IND_Camera3d::SetFarClippingPlane ( float  pFarPlane  )  [inherited]

Parameters:

Operation:

This function sets the distancy to the far plane.

Default: 100.0f

void IND_Camera3d::ToggleOrthoProjection ( bool  pOrtho  )  [inherited]

Parameters:

Operation:

This function activates / deactivates the orthonormal projection.

Default: 0

void IND_Camera3d::SetOrthoWidth ( float  pOrthoWidth  )  [inherited]

Parameters:

Operation:

This function sets the width of the ortho projection. This value should usually be the same than the viewport width. So you can sets this value to IND_Render::GetViewPortWidth()

Default: 0

void IND_Camera3d::SetOrthoHeight ( float  pOrthoHeight  )  [inherited]

Parameters:

Operation:

This function sets the height of the ortho projection. This value should usually be the same than the viewport height. So you can sets this value to IND_Render::GetViewPortHeight()

Default: 0


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