Scol standard library package
0.3.1
Common and usefull functions for all Scol applications
|
Functions | |
b3d_objDestroy (obj) | |
Destroy any 3d object. More... | |
b3d_objGetFromName (strSession, name) | |
Get an 3d object from its name in a given session object. More... | |
b3d_objGetGlobalOrientation (obj) | |
Get the current global orientation of an 3d object. More... | |
b3d_objGetOrientation (obj) | |
Get the current orientation of an 3d object. More... | |
b3d_objGetPosition (obj) | |
Set the 3d object position. More... | |
b3d_objLink (obj, father) | |
Link an 3d object to another 3d object. More... | |
b3d_objSetGlobalOrientation (obj, angDeg) | |
Set the global orientation of an 3d object. More... | |
b3d_objSetOrientation (obj, angDeg) | |
Set the orientation of an 3d object. More... | |
b3d_objSetPosition (obj, posF) | |
Set the 3d object position. More... | |
b3d_objSetRotate (obj, rot, tuple, flag) | |
Rotate an 3d object. More... | |
b3d_objSetRotatePitch (obj, pitch, flag) | |
Set the pitch of an 3d object. More... | |
b3d_objSetPosition | ( | obj | , |
posF | |||
) |
Set the 3d object position.
Prototype : fun [SO3_OBJECT [F F F]] I
SO3_OBJECT | : a 3d object |
[F | F F] : position |
b3d_objGetPosition | ( | obj | ) |
Set the 3d object position.
Prototype : fun [SO3_OBJECT] [F F F]
SO3_OBJECT | : a 3d object |
b3d_objSetRotatePitch | ( | obj | , |
pitch | , | ||
flag | |||
) |
Set the pitch of an 3d object.
Prototype : fun [SO3_OBJECT F I] I
SO3_OBJECT | : a 3d object |
F | : a pitch value |
I | : a flag, one of these following values : SO3_LOCAL_TS, SO3_PARENT_TS or SO3_WORLD_TS |
b3d_objSetRotate | ( | obj | , |
rot | , | ||
tuple | , | ||
flag | |||
) |
Rotate an 3d object.
Prototype : fun [SO3_OBJECT F [F F F] I] I
SO3_OBJECT | : a 3d object |
F | : a rotation value |
[F | F F] : vector (values by axes) |
I | : a flag, one of these following values : SO3_LOCAL_TS, SO3_PARENT_TS or SO3_WORLD_TS |
b3d_objLink | ( | obj | , |
father | |||
) |
Link an 3d object to another 3d object.
Prototype : fun [SO3_OBJECT SO3_OBJECT] I
SO3_OBJECT | : a 3d object (child) |
SO3_OBJECT | : another 3d object (father) |
b3d_objSetOrientation | ( | obj | , |
angDeg | |||
) |
Set the orientation of an 3d object.
Prototype : fun [SO3_OBJECT [F F F]] I
SO3_OBJECT | : a 3d object (child) |
[F | F F] : new angle, in degree. If nil, the vector will be [0.0 0.0 0.0]. |
b3d_objSetGlobalOrientation | ( | obj | , |
angDeg | |||
) |
Set the global orientation of an 3d object.
Prototype : fun [SO3_OBJECT [F F F]] I
SO3_OBJECT | : a 3d object (child) |
[F | F F] : new angle, in degree. If nil, the vector will be [0.0 0.0 0.0]. |
b3d_objGetOrientation | ( | obj | ) |
Get the current orientation of an 3d object.
Prototype : fun [SO3_OBJECT] [F F F]
SO3_OBJECT | : a 3d object (child) |
b3d_objGetGlobalOrientation | ( | obj | ) |
Get the current global orientation of an 3d object.
Prototype : fun [SO3_OBJECT] [F F F]
SO3_OBJECT | : a 3d object (child) |
b3d_objGetFromName | ( | strSession | , |
name | |||
) |
Get an 3d object from its name in a given session object.
Prototype : fun [LIB3D_Session S] SO3_OBJECT
LIB3D_Session | : a 3d session object |
S | : a name |
b3d_objDestroy | ( | obj | ) |
Destroy any 3d object.
Prototype : fun [SO3_OBJECT] I
SO3_OBJECT | : a 3d object to destroy |