Moai SDK
1.5 revision 1 (MoaiEdition)
|
Function List | |
getFarPlane | |
getFieldOfView | |
getFocalLength | |
getNearPlane | |
setFarPlane | |
setFieldOfView | |
setNearPlane | |
setOrtho |
Returns the camera's far plane.
function getFarPlane ( MOAICamera self )
self | ( MOAICamera ) |
Returns the camera's horizontal field of view.
function getFieldOfView ( MOAICamera self )
self | ( MOAICamera ) |
Returns the camera's focal length given the width of the view plane.
function getFocalLength ( MOAICamera self, number width )
self | ( MOAICamera ) |
width | ( number ) |
Returns the camera's near plane.
function getNearPlane ( MOAICamera self )
self | ( MOAICamera ) |
Sets the camera's far plane distance.
function setFarPlane ( MOAICamera self [, number far ] )
self | ( MOAICamera ) |
far | ( number ) Optional. Default value is 10000. |
Sets the camera's horizontal field of view.
function setFieldOfView ( MOAICamera self [, number hfow ] )
self | ( MOAICamera ) |
hfow | ( number ) Optional. Default value is 60. |
Sets the camera's near plane distance.
function setNearPlane ( MOAICamera self [, number near ] )
self | ( MOAICamera ) |
near | ( number ) Optional. Default value is 1. |
Sets orthographic mode.
function setOrtho ( MOAICamera self [, boolean ortho ] )
self | ( MOAICamera ) |
ortho | ( boolean ) Optional. Default value is true. |