Scol standard library package
0.3.1
Common and usefull functions for all Scol applications
|
Functions | |
b3d_viewportDestroy (strView, strViewport) | |
Destroy a 3d viewport. More... | |
b3d_viewportGet (strViewport) | |
Get the SO3_VIEWPORT obj from the 3d viewport. More... | |
b3d_viewportGetBgcolor (strViewport) | |
Return the background color to a given viewport object. More... | |
b3d_viewportGetCamera (strViewport) | |
Return the current camera to a given 3d viewport. More... | |
b3d_viewportGetClearBufferColorDepth (strViewport) | |
Get if the given viewport clear the color and the depth buffer or not. More... | |
b3d_viewportGetPolygonMode (strViewport, mode) | |
Get the polygon rendering mode for a given viewport. More... | |
b3d_viewportGetPosSize (strViewport) | |
Get the position and the size of a viewport object. More... | |
b3d_viewportGetShadow (strViewport) | |
Get if the shadow is enabled or disabled on a given viewport. More... | |
b3d_viewportGetSky (strViewport) | |
Get the skies visibility state on a given viewport. More... | |
b3d_viewportNew (strView, camera) | |
Create a new viewport with the default parameters. More... | |
b3d_viewportSetBgcolor (strViewport, color) | |
Set the background color to a given viewport object. More... | |
b3d_viewportSetCamera (strViewport, camera) | |
Set the camera to a given 3d viewport. More... | |
b3d_viewportSetClearBufferColorDepth (strViewport, stateColor, stateDepth) | |
Set if the given viewport clear the color and the depth buffer or not. More... | |
b3d_viewportSetPolygonMode (strViewport, mode) | |
Set the polygon rendering mode for a given viewport. More... | |
b3d_viewportSetPosSize (strViewport, x, y, width, height) | |
Move and resize a viewport object. Values are from the father object. More... | |
b3d_viewportSetShadow (strViewport, state) | |
Enable / Disable the shadows on a given viewport. More... | |
b3d_viewportSetSky (strViewport, state) | |
Set the skies visibility state on a given viewport. More... | |
b3d_viewportNew | ( | strView | , |
camera | |||
) |
Create a new viewport with the default parameters.
The defaults are :
Prototype : fun [LIB3D_View SO3_OBJECT] LIB3D_Viewport
LIB3D_View | : a 3d view object |
SO3_OBJECT | : a camera object |
b3d_viewportSetPosSize | ( | strViewport | , |
x | , | ||
y | , | ||
width | , | ||
height | |||
) |
Move and resize a viewport object. Values are from the father object.
Prototype : fun [LIB3D_Viewport F F F F] I
LIB3D_Viewport | : a 3d viewport object |
F | : the new x coordinate (0 and 1) |
F | : the new y coordinate (0 and 1) |
F | : the new width (0 and 1) |
F | : the new height (0 and 1) |
b3d_viewportGetPosSize | ( | strViewport | ) |
Get the position and the size of a viewport object.
Prototype : fun [LIB3D_Viewport] [F F F F]
LIB3D_Viewport | : a 3d viewport object |
b3d_viewportSetBgcolor | ( | strViewport | , |
color | |||
) |
Set the background color to a given viewport object.
Prototype : fun [LIB3D_Viewport I] I
LIB3D_Viewport | : a 3d viewport object |
I | : a rgba color |
b3d_viewportGetBgcolor | ( | strViewport | ) |
Return the background color to a given viewport object.
Prototype : fun [LIB3D_Viewport] I
LIB3D_Viewport | : a 3d viewport object |
b3d_viewportSetClearBufferColorDepth | ( | strViewport | , |
stateColor | , | ||
stateDepth | |||
) |
Set if the given viewport clear the color and the depth buffer or not.
Prototype : fun [LIB3D_Viewport I I] I
LIB3D_Viewport | : a 3d viewport object |
I | : 1 to clear the color, else 0 |
I | : 1 to clear the depth, else 0 |
b3d_viewportGetClearBufferColorDepth | ( | strViewport | ) |
Get if the given viewport clear the color and the depth buffer or not.
Prototype : fun [LIB3D_Viewport] [I I]
LIB3D_Viewport | : a 3d viewport object |
b3d_viewportSetShadow | ( | strViewport | , |
state | |||
) |
Enable / Disable the shadows on a given viewport.
Prototype : fun [LIB3D_Viewport I] I
LIB3D_Viewport | : a 3d viewport object |
I | : 1 to enable, 0 to disable |
b3d_viewportGetShadow | ( | strViewport | ) |
Get if the shadow is enabled or disabled on a given viewport.
Prototype : fun [LIB3D_Viewport] I
LIB3D_Viewport | : a 3d viewport object |
b3d_viewportSetSky | ( | strViewport | , |
state | |||
) |
Set the skies visibility state on a given viewport.
Prototype : fun [LIB3D_Viewport I] I
LIB3D_Viewport | : a 3d viewport object |
I | : 1 to enable, 0 to disable |
b3d_viewportGetSky | ( | strViewport | ) |
Get the skies visibility state on a given viewport.
Prototype : fun [LIB3D_Viewport] I
LIB3D_Viewport | : a 3d viewport object |
b3d_viewportGet | ( | strViewport | ) |
Get the SO3_VIEWPORT obj from the 3d viewport.
Prototype : fun [LIB3D_Viewport] SO3_VIEWPORT
LIB3D_Viewport | : a 3d viewport object |
b3d_viewportDestroy | ( | strView | , |
strViewport | |||
) |
Destroy a 3d viewport.
Prototype : fun [LIB3D_Viewport] I
LIB3D_Viewport | : a 3d viewport object |
b3d_viewportSetCamera | ( | strViewport | , |
camera | |||
) |
Set the camera to a given 3d viewport.
Prototype : fun [LIB3D_Viewport SO3_OBJECT] I
LIB3D_Viewport | : a 3d viewport object |
SO3_OBJECT | : the camera object |
b3d_viewportGetCamera | ( | strViewport | ) |
Return the current camera to a given 3d viewport.
Prototype : fun [LIB3D_Viewport] SO3_OBJECT
LIB3D_Viewport | : a 3d viewport object |
b3d_viewportSetPolygonMode | ( | strViewport | , |
mode | |||
) |
Set the polygon rendering mode for a given viewport.
Prototype : fun [LIB3D_Viewport I] I
LIB3D_Viewport | : a 3d viewport object |
I | : the choosen mode, one of these following values :
|
b3d_viewportGetPolygonMode | ( | strViewport | , |
mode | |||
) |
Get the polygon rendering mode for a given viewport.
Prototype : fun [LIB3D_Viewport] I
LIB3D_Viewport | : a 3d viewport object |