Moai SDK  1.5 revision 1 (MoaiEdition)
MOAICamera2D Class Reference
Inheritance diagram for MOAICamera2D:
MOAITransform2D MOAITransformBase MOAINode MOAIInstanceEventSource MOAIEventSource

List of all members.

Function List

  getFarPlane
  getNearPlane
  setFarPlane
  setNearPlane

Function Documentation

SUPPRESS_EMPTY_FILE_WARNING getFarPlane

Returns the camera's far plane.


function getFarPlane ( MOAICamera2D self )
Parameters:
self ( MOAICamera2D )
Returns:
far ( number )

Returns the camera's near plane.


function getNearPlane ( MOAICamera2D self )
Parameters:
self ( MOAICamera2D )
Returns:
near ( number )

Sets the camera's far plane distance.


function setFarPlane ( MOAICamera2D self [, number far ] )
Parameters:
self ( MOAICamera2D )
far ( number ) Optional. Default value is -1.
Returns:
nil

Sets the camera's near plane distance.


function setNearPlane ( MOAICamera2D self [, number near ] )
Parameters:
self ( MOAICamera2D )
near ( number ) Optional. Default value is 1.
Returns:
nil