SO3Engine/SCOLPack/SCOLLight.cpp File Reference

#include "SO3SCOL.h"
#include "../SO3SceneGraph/SO3Light.h"
#include "../SCOLBasic/SO3Std.h"
#include "../SO3SceneGraph/SO3NodeScol.h"
#include "../SO3SceneGraph/SO3Scene.h"

Go to the source code of this file.

Defines

#define NBLIGHTPKG   23

Functions

int SO3LightCreate (mmachine m)
 main include
int SO3LightSetType (mmachine m)
 SO3LightSetType : Defines the type of light.
int SO3LightGetType (mmachine m)
 SO3LightGetType : Returns the type of light.
int SO3LightSetDiffuseColor (mmachine m)
 SO3LightSetDiffuseColor : defines diffuse color of a light.
int SO3LightGetDiffuseColor (mmachine m)
 SO3LightGetDiffuseColor : Get the diffuse color of a light.
int SO3LightSetPowerScale (mmachine m)
 SO3LightSetPowerScale : defines power scale of a light.
int SO3LightSetShadowFarDistance (mmachine m)
 SO3LightSetShadowFarDistance : defines shadows far distance of a light.
int SO3LightGetPowerScale (mmachine m)
 SO3LightGetPowerScale : Get the power scale of a light.
int SO3LightGetShadowFarDistance (mmachine m)
 SO3LightGetShadowFarDistance : Get the shadow far distance of a light.
int SO3LightSetVisible (mmachine m)
 SO3LightSetVisible : defines visibility state of a light.
int SO3LightGetVisible (mmachine m)
 SO3LightGetVisible : Get the visibility state of a light.
int SO3LightSetAttenuation (mmachine m)
 SO3LightSetAttenuation : defines attenuation coefficients for a light.
int SO3LightSetAttenuationAuto (mmachine m)
 SO3LightSetAttenuationAuto : defines attenuation coefficients for a light automatically, from given range.
int SO3LightGetAttenuation (mmachine m)
 SO3LightGetAttenuation : Get the attenuation coefficients for a light.
int SO3LightSetSpecularColor (mmachine m)
 SO3LightSetSpecularColor : defines specular color of a light.
int SO3LightGetSpecularColor (mmachine m)
 SO3LightGetSpecularColor : Get the specular color of a light.
int SO3LightSetSpotFallOff (mmachine m)
 SO3LightSetSpotFallOff : defines spot fall off of a spot light.
int SO3LightGetSpotFallOff (mmachine m)
 SO3LightGetSpotFallOff : Get the spot fall off of a spot light.
int SO3LightSetSpotInnerAngle (mmachine m)
 SO3LightSetSpotInnerAngle : defines spot inner angle of a spot light.
int SO3LightSetSpotOuterAngle (mmachine m)
 SO3LightSetSpotOuterAngle : defines spot outer angle of a spot light.
int SO3LightSetSpotRange (mmachine m)
 SO3LightSetSpotRange : defines spot range of a spot light.
int SO3LightGetSpotInnerAngle (mmachine m)
 SO3LightGetSpotInnerAngle : Get the spot inner angle of a spot light.
int SO3LightGetSpotOuterAngle (mmachine m)
 SO3LightGetSpotOuterAngle : Get the spot outer angle of a spot light.
int SCOLloadLight (mmachine m, cbmachine w)
 Load the SO3Engine Lights function.
int SCOLfreeLight ()
 free the SO3Engine Lights function

Variables

char * LIGHTname [NBLIGHTPKG]
int(* LIGHTFunc [NBLIGHTPKG])(mmachine m)
int LIGHTnarg [NBLIGHTPKG]
char * LIGHTType [NBLIGHTPKG]

Define Documentation

#define NBLIGHTPKG   23

Nb of Scol functions or types

Definition at line 977 of file SCOLLight.cpp.


Function Documentation

int SCOLfreeLight (  ) 

free the SO3Engine Lights function

Parameters:
m : The VM

Definition at line 1119 of file SCOLLight.cpp.

int SCOLloadLight ( mmachine  m,
cbmachine  w 
)

Load the SO3Engine Lights function.

Parameters:
m : The VM
w : The Callback VM

Definition at line 1109 of file SCOLLight.cpp.


Variable Documentation

int(* LIGHTFunc[NBLIGHTPKG])(mmachine m)
char* LIGHTname[NBLIGHTPKG]
Initial value:
{
  "SO3LightCreate",
  "SO3LightSetType",
  "SO3LightGetType",
  "SO3LightSetDiffuseColor",
  "SO3LightGetDiffuseColor",
  "SO3LightSetPowerScale",
  "SO3LightSetShadowFarDistance",
  "SO3LightGetPowerScale",
  "SO3LightGetShadowFarDistance",
  "SO3LightSetVisible",
  "SO3LightGetVisible",
  "SO3LightSetAttenuation",
  "SO3LightSetAttenuationAuto",
  "SO3LightGetAttenuation",
  "SO3LightSetSpecularColor",
  "SO3LightGetSpecularColor",
  "SO3LightSetSpotFallOff",
  "SO3LightGetSpotFallOff",
  "SO3LightSetSpotInnerAngle",
  "SO3LightSetSpotOuterAngle",
  "SO3LightGetSpotInnerAngle",
  "SO3LightGetSpotOuterAngle",
  "SO3LightSetSpotRange"
}

Pointers to C functions that manipulate the VM for each scol function previously defined

Definition at line 983 of file SCOLLight.cpp.

int LIGHTnarg[NBLIGHTPKG]
Initial value:
{
  2,                                        
  2,                                        
  1,                                        
  2,                                        
  1,                                        
  2,                                        
  2,                                        
  1,                                        
  1,                                        
  2,                                        
  1,                                        
  2,                                        
  2,                                        
  1,                                        
  2,                                        
  1,                                        
  2,                                        
  1,                                        
  2,                                        
  2,                                        
  1,                                        
  1,                                        
  2                                         
}

Nb of arguments of each scol function

Definition at line 1045 of file SCOLLight.cpp.

char* LIGHTType[NBLIGHTPKG]
Initial value:
{
  "fun [SO3_SCENE S] SO3_OBJECT",           
  "fun [SO3_OBJECT I] I",                   
  "fun [SO3_OBJECT] I",                     
  "fun [SO3_OBJECT I] I",                   
  "fun [SO3_OBJECT] I",                     
  "fun [SO3_OBJECT F] I",                   
  "fun [SO3_OBJECT F] I",                   
  "fun [SO3_OBJECT] F",                     
  "fun [SO3_OBJECT] F",                     
  "fun [SO3_OBJECT I] I",                   
  "fun [SO3_OBJECT] I",                     
  "fun [SO3_OBJECT [F F F F]] I",           
  "fun [SO3_OBJECT F] I",                   
  "fun [SO3_OBJECT] [F F F F]",             
  "fun [SO3_OBJECT I] I",                   
  "fun [SO3_OBJECT] I",                     
  "fun [SO3_OBJECT F] I",                   
  "fun [SO3_OBJECT] F",                     
  "fun [SO3_OBJECT F] I",                   
  "fun [SO3_OBJECT F] I",                   
  "fun [SO3_OBJECT] F",                     
  "fun [SO3_OBJECT] F",                     
  "fun [SO3_OBJECT [F F F]] I"              
}

Prototypes of the scol functions

Definition at line 1076 of file SCOLLight.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Mon Oct 31 14:42:32 2011 for SO3Engine by  doxygen 1.6.3