Scol standard library package
0.3.1
Common and usefull functions for all Scol applications
|
Functions | |
b3d_gridShow (strSession, state) | |
Show / Hide a grid. More... | |
b3d_sessionCbAxisClick (strSession, cbfun) | |
Set the callback when an axis is clicked. More... | |
b3d_sessionCbAxisMove (strSession, cbfun) | |
Set the callback when an axis is moved. More... | |
b3d_sessionCbAxisUnClick (strSession, cbfun) | |
Set the callback when an axis is unclicked. More... | |
b3d_sessionCbPostRender (strSession, cbfun) | |
Set the callback to post-rendering. More... | |
b3d_sessionCbPreRender (strSession, cbfun) | |
Set the callback to the pre redering. More... | |
b3d_sessionCbPreRenderEnd (strSession, cbfun) | |
Set the callback to the end of the pre-rendering. More... | |
b3d_sessionCbPreRenderPhysics (strSession, cbfun) | |
Set the callback to the physics pre-rendering. More... | |
b3d_sessionDestroy (strSession) | |
Destroys session object. More... | |
b3d_sessionGet (strSession) | |
Return the Scol session object from the library session object. More... | |
b3d_sessionGetView (strSession) | |
Return the 3D view object used by the 3D Session object. More... | |
To create a 3d session, go to 'init' section.
b3d_sessionGet | ( | strSession | ) |
Return the Scol session object from the library session object.
Prototype : fun [LIB3D_Session] SO3_SCENE
LIB3D_Session | : a basic 3d session object |
b3d_sessionDestroy | ( | strSession | ) |
Destroys session object.
Prototype : fun [LIB3D_Session] I
LIB3D_Session | : a basic 3d session object |
b3d_sessionCbAxisClick | ( | strSession | , |
cbfun | |||
) |
Set the callback when an axis is clicked.
Prototype : fun [LIB3D_Session fun [LIB3D_Session SO3_OBJECT I I I I] I] I
LIB3D_Session | : a basic 3d session object |
fun | [LIB3D_Session SO3_OBJECT I I I I] I : the supplemental arguments are : the axis father object, the axis (iLIB3D_AXIS_X, iLIB3D_AXIS_Y or iLIB3D_AXIS_Z), the x, y coordinates and the button number. |
b3d_sessionCbAxisUnClick | ( | strSession | , |
cbfun | |||
) |
Set the callback when an axis is unclicked.
Prototype : fun [LIB3D_Session fun [LIB3D_Session SO3_OBJECT I I I I] I] I
LIB3D_Session | : a basic 3d session object |
fun | [LIB3D_Session SO3_OBJECT I I I I] I : the supplemental arguments are : the axis father object, the axis (iLIB3D_AXIS_X, iLIB3D_AXIS_Y or iLIB3D_AXIS_Z), the x, y coordinates and the button number. |
b3d_sessionCbAxisMove | ( | strSession | , |
cbfun | |||
) |
Set the callback when an axis is moved.
Prototype : fun [LIB3D_Session fun [LIB3D_Session SO3_OBJECT I I I I] I] I
LIB3D_Session | : a basic 3d session object |
fun | [LIB3D_Session SO3_OBJECT I I I I F] I : the supplemental arguments are : the axis father object, the axis (iLIB3D_AXIS_X, iLIB3D_AXIS_Y or iLIB3D_AXIS_Z), the x, y coordinates, the button number, the scale coefficient. |
b3d_sessionCbPreRender | ( | strSession | , |
cbfun | |||
) |
Set the callback to the pre redering.
Prototype : fun [LIB3D_Session fun [LIB3D_Session I] I] I
LIB3D_Session | : a basic 3d session object |
fun | [LIB3D_Session I] I : the supplemental argument is : the elapsed time from the last render |
b3d_sessionCbPreRenderEnd | ( | strSession | , |
cbfun | |||
) |
Set the callback to the end of the pre-rendering.
Prototype : fun [LIB3D_Session fun [LIB3D_Session I] I] I
LIB3D_Session | : a basic 3d session object |
fun | [LIB3D_Session I] I : the supplemental argument is : the elapsed time from the last render |
b3d_sessionCbPreRenderPhysics | ( | strSession | , |
cbfun | |||
) |
Set the callback to the physics pre-rendering.
Prototype : fun [LIB3D_Session fun [LIB3D_Session I] I] I
LIB3D_Session | : a basic 3d session object |
fun | [LIB3D_Session I] I : the supplemental argument is : the elapsed time from the last render |
b3d_sessionCbPostRender | ( | strSession | , |
cbfun | |||
) |
Set the callback to post-rendering.
Prototype : fun [LIB3D_Session fun [LIB3D_Session I] I] I
LIB3D_Session | : a basic 3d session object |
fun | [LIB3D_Session I] I : the supplemental argument is : the elapsed time from the last render |
b3d_sessionGetView | ( | strSession | ) |
Return the 3D view object used by the 3D Session object.
Prototype : fun [LIB3D_Session] LIB3D_View
LIB3D_Session | : a basic 3d session object |
b3d_gridShow | ( | strSession | , |
state | |||
) |
Show / Hide a grid.
Prototype : fun [LIB3D_Session I] I
LIB3D_Session | : a basic 3d session object |
I | : state : show (1) or hide (0) |