Scol standard library package
0.3.1
Common and usefull functions for all Scol applications
|
Functions | |
b3d_lightAdd (strSession, name, type, father) | |
Create (add) a new light. More... | |
b3d_lightAmbiantGet (strSession) | |
Get the 3d ambiant light. More... | |
b3d_lightAmbiantSet (strSession, color) | |
Set the 3d ambiant light. More... | |
b3d_lightGetAttenuation (light) | |
Get the attenuation coefficients of a light. More... | |
b3d_lightGetColors (light) | |
Get the diffuse and specular colors of a light. More... | |
b3d_lightGetType (light) | |
Get the type of a light. More... | |
b3d_lightGetVisible (light) | |
Get the visibility of a light. More... | |
b3d_lightSetAttenuation (light, tuple) | |
Set the attenuation coefficients of a light. More... | |
b3d_lightSetColorDiffuse (light, color) | |
Set the diffuse color of a light. More... | |
b3d_lightSetColors (light, tuple) | |
Set the specular color of a light. More... | |
b3d_lightSetColorSpecular (light, color) | |
Set the specular color of a light. More... | |
b3d_lightSetType (light, type) | |
Set the type of a light. More... | |
b3d_lightSetVisible (light, state) | |
Set the visibility of a light. More... | |
b3d_lightAmbiantSet | ( | strSession | , |
color | |||
) |
Set the 3d ambiant light.
Prototype : fun [LIB3D_Session I] I
LIB3D_Session | : a session object |
I | : a RGBA color |
b3d_lightAmbiantGet | ( | strSession | ) |
Get the 3d ambiant light.
Prototype : fun [LIB3D_Session] I
LIB3D_Session | : a session object |
b3d_lightAdd | ( | strSession | , |
name | , | ||
type | , | ||
father | |||
) |
Create (add) a new light.
Prototype : fun [LIB3D_Session S I SO3_OBJECT] SO3_OBJECT
LIB3D_Session | : a session object |
S | : a name |
I | : the type of light, one of these following types :
|
SO3_OBJECT | : a father, a 3d object to link the light. Can be nil. |
b3d_lightSetType | ( | light | , |
type | |||
) |
Set the type of a light.
Prototype : fun [SO3_OBJECT I] I
SO3_OBJECT | : a light |
I | : the type of light, one of these following types :
|
b3d_lightGetType | ( | light | ) |
Get the type of a light.
Prototype : fun [SO3_OBJECT] I
SO3_OBJECT | : a light |
b3d_lightSetColorDiffuse | ( | light | , |
color | |||
) |
Set the diffuse color of a light.
Prototype : fun [SO3_OBJECT I] I
SO3_OBJECT | : a light |
I | : the rgba color to set |
b3d_lightSetColorSpecular | ( | light | , |
color | |||
) |
Set the specular color of a light.
Prototype : fun [SO3_OBJECT I] I
SO3_OBJECT | : a light |
I | : the rgba color to set |
b3d_lightSetColors | ( | light | , |
tuple | |||
) |
Set the specular color of a light.
Prototype : fun [SO3_OBJECT [I I]] I
SO3_OBJECT | : a light |
[I | I] : the rgba diffuse color and the rgba specular color |
b3d_lightGetColors | ( | light | ) |
Get the diffuse and specular colors of a light.
Prototype : fun [SO3_OBJECT] [I I]
SO3_OBJECT | : a light |
b3d_lightSetVisible | ( | light | , |
state | |||
) |
Set the visibility of a light.
Prototype : fun [SO3_OBJECT I] I
SO3_OBJECT | : a light |
I | : the state : 1 to enable the visibility, 0 to disable the visibility |
b3d_lightGetVisible | ( | light | ) |
Get the visibility of a light.
Prototype : fun [SO3_OBJECT] I
SO3_OBJECT | : a light |
b3d_lightSetAttenuation | ( | light | , |
tuple | |||
) |
Set the attenuation coefficients of a light.
Prototype : fun [SO3_OBJECT [F F F F]] I
SO3_OBJECT | : a light |
[F | F F F] : light range coefficient, constant attenuation value, linear attenuation coefficient and quadratic attenuation coefficient |
b3d_lightGetAttenuation | ( | light | ) |
Get the attenuation coefficients of a light.
Prototype : fun [SO3_OBJECT] [F F F F]
SO3_OBJECT | : a light |