SO3Engine
Functions | Variables
SCOLCamera.cpp File Reference

Go to the source code of this file.

Functions

int SO3CameraCreate (mmachine m)
 main include
 
int SO3CameraLookAt (mmachine m)
 SO3CameraLookAt : Set a "look at" on the camera.
 
int SO3CameraGetDirection (mmachine m)
 SO3CameraGetDirection : Get the direction of a camera.
 
int SO3CameraGetDerivedDirection (mmachine m)
 SO3CameraGetDerivedDirection : Get the derivated direction of a camera.
 
int SO3CameraGetDerivedUp (mmachine m)
 SO3CameraGetDerivedUp : Gets the derived up vector of the camera, including any rotation inherited from a node attachment and reflection matrix.
 
int SO3CameraGetTriangleCount (mmachine m)
 SO3CameraGetTriangleCount : get the number of triangles rendered in last update.
 
int SO3CameraGetBatchCount (mmachine m)
 SO3CameraGetBatchCount : get the number of batch rendered in last update.
 
int SO3CameraSetViewport (mmachine m)
 SO3CameraSetViewport : Attach a camera to a viewport.
 
int SO3CameraSetFocalLength (mmachine m)
 SO3CameraSetFocalLength : defines focal length of a camera.
 
int SO3CameraGetFocalLength (mmachine m)
 SO3CameraGetFocalLength : Get the focal length of a camera.
 
int SO3CameraSetFOVy (mmachine m)
 SO3CameraSetFOVy : defines FOVy of a camera.
 
int SO3CameraSetLODbias (mmachine m)
 SO3CameraSetLODbias : defines a camera LOD bias.
 
int SO3CameraSetAspectRatio (mmachine m)
 SO3CameraSetAspectRatio : defines the aspect ratio of a camera.
 
int SO3CameraGetAspectRatio (mmachine m)
 SO3CameraGetAspectRatio : get the aspect ratio of a camera.
 
int SO3CameraSetAutoAspectRatio (mmachine m)
 SO3CameraSetAutoAspectRatio : set a camera aspect ratio to automatic.
 
int SO3CameraSetFrustumOffset (mmachine m)
 SO3CameraSetFrustumOffset : defines the frustum offset of a camera.
 
int SO3CameraGetFrustumOffset (mmachine m)
 SO3CameraGetFrustumOffset : get the frustum offset of a camera.
 
int SO3CameraGetFOVy (mmachine m)
 SO3CameraGetFOVy : Get the FOVy of a camera.
 
int SO3CameraGetLODbias (mmachine m)
 SO3CameraGetLODbias : Get the a camera LOD bias.
 
int SO3CameraSetPolygonMode (mmachine m)
 SO3CameraSetPolygonMode : Set the polygon Mode for a given camera.
 
int SO3CameraGetPolygonMode (mmachine m)
 SO3CameraGetPolygonMode : Get the Polygon mode of a camera.
 
int SO3CameraSetProjectionType (mmachine m)
 SO3CameraSetProjectionType : Sets the type of projection to use (orthographic or perspective). Default is perspective.
 
int SO3CameraGetProjectionType (mmachine m)
 SO3CameraGetProjectionType : Get the camera projection type.
 
int SO3CameraSetOrthoWindow (mmachine m)
 SO3CameraSetOrthoWindow : Sets the orthographic window settings, for use with orthographic rendering only.
 
int SO3CameraGetOrthoWindow (mmachine m)
 SO3CameraGetOrthoWindow : Gets the orthographic window settings, for use with orthographic rendering only.
 
int SO3CameraSetNearClipDistance (mmachine m)
 SO3CameraSetNearClipDistance : defines near clip distance of a camera.
 
int SO3CameraGetNearClipDistance (mmachine m)
 SO3CameraGetNearClipDistance : Get the near clip distance of a camera.
 
int SO3CameraSetFarClipDistance (mmachine m)
 SO3CameraSetFarClipDistance : defines far clip distance of a camera.
 
int SO3CameraGetFarClipDistance (mmachine m)
 SO3CameraGetFarClipDistance : Get the far clip distance of a camera.
 
int SO3CameraGetViewport (mmachine m)
 SO3CameraGetViewport : Get the current viewport attached to a camera.
 
int SO3CameraGetNumRenderedFaces (mmachine m)
 SO3CameraGetNumRenderedFaces : Get the numbered of rendered faces for a camera.
 
int SO3CameraSetProjectionMatrix (mmachine m)
 SO3CameraSetProjectionMatrix : Set the camera projection matrix.
 
int SO3CameraGetProjectionMatrix (mmachine m)
 SO3CameraGetProjectionMatrix : This function return the projection matrix Prototype: fun [SO3_OBJECT] [[F F F F] [F F F F] [F F F F] [F F F F]].
 
int SCOLloadCamera (mmachine m, cbmachine w)
 Load the SO3Engine Viewport function.
 
int SCOLfreeCamera ()
 free the SO3Engine Viewport function
 

Variables

NativeDefinition natSO3Camera []
 

Function Documentation

◆ SCOLfreeCamera()

int SCOLfreeCamera ( )

free the SO3Engine Viewport function

Parameters
m: The VM

Definition at line 1793 of file SCOLCamera.cpp.

◆ SCOLloadCamera()

int SCOLloadCamera ( mmachine  m,
cbmachine  w 
)

Load the SO3Engine Viewport function.

Parameters
m: The VM
w: The Callback VM

Definition at line 1783 of file SCOLCamera.cpp.

◆ SO3CameraGetProjectionMatrix()

int SO3CameraGetProjectionMatrix ( mmachine  m)

SO3CameraGetProjectionMatrix : This function return the projection matrix Prototype: fun [SO3_OBJECT] [[F F F F] [F F F F] [F F F F] [F F F F]].

Parameters
SO3_OBJECT: camera
Returns
[[F F F F] [F F F F] [F F F F] [F F F F]] : Projection matrix

Definition at line 1627 of file SCOLCamera.cpp.

Variable Documentation

◆ natSO3Camera

NativeDefinition natSO3Camera[]

Definition at line 1739 of file SCOLCamera.cpp.