The OCamera class
An 'OCamera' instance is an camera object in a scene which can be
manipulated.
See also: Widget
OCamera(object3d)
Create a new OCamera object with the given Object3d
as the base. Will return 'nil' if the given object is not of type 'Camera'.
Parameter
object3d
function OCamera:setClearColor(color)
Sets the clear color
Parameter
color
function OCamera:getClearColor()
Returns the clear color
Return: A vec3
function OCamera:setFov(fov)
Changes the FoV
Parameter
fov
function OCamera:getFov()
Returns the FoV
Return: A number
function OCamera:setNearPlane(plane)
Changes the distance to the near plane
Parameter
plane
function OCamera:getNearPlane()
Returns the distance to the near plane
Return: A number
function OCamera:setFarPlane(plane)
Changes the distance to the far plane
Parameter
plane
function OCamera:getFarPlane()
Returns the distance to the far plane
Return: A number
function OCamera:setFogDistance(distance)
Changes the distance to the fog
@distance A number
function OCamera:getFogDistance()
Returns the distance to the fog
Return: A number
function OCamera:enableOrtho(value)
Makes the camera ortho according to the value
Parameter
value
function OCamera:isOrtho()
Returns if the camera is ortho
Return: A boolean
function OCamera:enableFog(value)
Turns on the camera fog according to the value
Parameter
value
function OCamera:hasFog()
Returns if the camera has fog
Return: A boolean