SO3Engine
Functions | Variables
SCOLLight.cpp File Reference

Go to the source code of this file.

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 SO3LightSetVolumetric (mmachine m)
 SO3LightSetVolumetric : defines if a light is displayed as a volumetric light.
 
int SO3LightGetVolumetric (mmachine m)
 SO3LightGetVolumetric : Get the volumetric 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 SO3LightSetSourceSize (mmachine m)
 SO3LightSetSourceSize : defines the source size of a rect light.
 
int SO3LightGetSourceSize (mmachine m)
 SO3LightGetSourceSize : get the source size of a rect light.
 
int SCOLloadLight (mmachine m, cbmachine w)
 Load the SO3Engine Lights function.
 
int SCOLfreeLight ()
 free the SO3Engine Lights function
 

Variables

NativeDefinition natSO3Light []
 

Function Documentation

◆ SCOLfreeLight()

int SCOLfreeLight ( )

free the SO3Engine Lights function

Parameters
m: The VM

Definition at line 1347 of file SCOLLight.cpp.

◆ SCOLloadLight()

int SCOLloadLight ( mmachine  m,
cbmachine  w 
)

Load the SO3Engine Lights function.

Parameters
m: The VM
w: The Callback VM

Definition at line 1337 of file SCOLLight.cpp.

Variable Documentation

◆ natSO3Light

NativeDefinition natSO3Light[]
Initial value:
= {
{ "SO3LightCreate", 2, "fun [SO3_SCENE S] SO3_OBJECT", SO3LightCreate },
{ "SO3LightSetType", 2, "fun [SO3_OBJECT I] I", SO3LightSetType },
{ "SO3LightGetType", 1, "fun [SO3_OBJECT] I", SO3LightGetType },
{ "SO3LightSetDiffuseColor", 2, "fun [SO3_OBJECT I] I", SO3LightSetDiffuseColor },
{ "SO3LightGetDiffuseColor", 1, "fun [SO3_OBJECT] I", SO3LightGetDiffuseColor },
{ "SO3LightSetPowerScale", 2, "fun [SO3_OBJECT F] I", SO3LightSetPowerScale },
{ "SO3LightSetShadowFarDistance", 2, "fun [SO3_OBJECT F] I", SO3LightSetShadowFarDistance },
{ "SO3LightGetPowerScale", 1, "fun [SO3_OBJECT] F", SO3LightGetPowerScale },
{ "SO3LightGetShadowFarDistance", 1, "fun [SO3_OBJECT] F", SO3LightGetShadowFarDistance },
{ "SO3LightSetVisible", 2, "fun [SO3_OBJECT I] I", SO3LightSetVisible },
{ "SO3LightGetVisible", 1, "fun [SO3_OBJECT] I", SO3LightGetVisible },
{ "SO3LightSetAttenuation", 2, "fun [SO3_OBJECT [F F F F]] I", SO3LightSetAttenuation },
{ "SO3LightSetAttenuationAuto", 2, "fun [SO3_OBJECT F] I", SO3LightSetAttenuationAuto },
{ "SO3LightGetAttenuation", 1, "fun [SO3_OBJECT] [F F F F]", SO3LightGetAttenuation },
{ "SO3LightSetSpecularColor", 2, "fun [SO3_OBJECT I] I", SO3LightSetSpecularColor },
{ "SO3LightGetSpecularColor", 1, "fun [SO3_OBJECT] I", SO3LightGetSpecularColor },
{ "SO3LightSetSpotFallOff", 2, "fun [SO3_OBJECT F] I", SO3LightSetSpotFallOff },
{ "SO3LightGetSpotFallOff", 1, "fun [SO3_OBJECT] F", SO3LightGetSpotFallOff },
{ "SO3LightSetSpotInnerAngle", 2, "fun [SO3_OBJECT F] I", SO3LightSetSpotInnerAngle },
{ "SO3LightSetSpotOuterAngle", 2, "fun [SO3_OBJECT F] I", SO3LightSetSpotOuterAngle },
{ "SO3LightGetSpotInnerAngle", 1, "fun [SO3_OBJECT] F", SO3LightGetSpotInnerAngle },
{ "SO3LightGetSpotOuterAngle", 1, "fun [SO3_OBJECT] F", SO3LightGetSpotOuterAngle },
{ "SO3LightSetSpotRange", 2, "fun [SO3_OBJECT [F F F]] I", SO3LightSetSpotRange },
{ "SO3LightSetSourceSize", 2, "fun [SO3_OBJECT [F F]] I", SO3LightSetSourceSize },
{ "SO3LightGetSourceSize", 1, "fun [SO3_OBJECT] [F F]", SO3LightGetSourceSize },
{ "SO3LightSetVolumetric", 2, "fun [SO3_OBJECT I] I", SO3LightSetVolumetric },
{ "SO3LightGetVolumetric", 1, "fun [SO3_OBJECT] I", SO3LightGetVolumetric }
}
int SO3LightSetAttenuationAuto(mmachine m)
SO3LightSetAttenuationAuto : defines attenuation coefficients for a light automatically,...
int SO3LightSetSpotRange(mmachine m)
SO3LightSetSpotRange : defines spot range of a spot light.
int SO3LightGetSourceSize(mmachine m)
SO3LightGetSourceSize : get the source size of a rect light.
int SO3LightSetType(mmachine m)
SO3LightSetType : Defines the type of light.
int SO3LightGetVolumetric(mmachine m)
SO3LightGetVolumetric : Get the volumetric state of a light.
int SO3LightGetAttenuation(mmachine m)
SO3LightGetAttenuation : Get the attenuation coefficients for a light.
int SO3LightGetVisible(mmachine m)
SO3LightGetVisible : Get the visibility state of a light.
int SO3LightSetPowerScale(mmachine m)
SO3LightSetPowerScale : defines power scale of a light.
int SO3LightSetSpotOuterAngle(mmachine m)
SO3LightSetSpotOuterAngle : defines spot outer angle of a spot light.
int SO3LightSetVolumetric(mmachine m)
SO3LightSetVolumetric : defines if a light is displayed as a volumetric light.
int SO3LightGetType(mmachine m)
SO3LightGetType : Returns the type of light.
int SO3LightGetShadowFarDistance(mmachine m)
SO3LightGetShadowFarDistance : Get the shadow far distance of a light.
int SO3LightGetSpotOuterAngle(mmachine m)
SO3LightGetSpotOuterAngle : Get the spot outer angle of a spot light.
int SO3LightGetSpecularColor(mmachine m)
SO3LightGetSpecularColor : Get the specular color of a light.
int SO3LightSetAttenuation(mmachine m)
SO3LightSetAttenuation : defines attenuation coefficients for a light.
int SO3LightSetDiffuseColor(mmachine m)
SO3LightSetDiffuseColor : defines diffuse color of a light.
int SO3LightSetVisible(mmachine m)
SO3LightSetVisible : defines visibility state of a light.
int SO3LightSetSpotInnerAngle(mmachine m)
SO3LightSetSpotInnerAngle : defines spot inner angle of a spot light.
int SO3LightGetPowerScale(mmachine m)
SO3LightGetPowerScale : Get the power scale of a light.
int SO3LightCreate(mmachine m)
main include
Definition SCOLLight.cpp:49
int SO3LightGetDiffuseColor(mmachine m)
SO3LightGetDiffuseColor : Get the diffuse color of a light.
int SO3LightSetSpecularColor(mmachine m)
SO3LightSetSpecularColor : defines 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 SO3LightSetSourceSize(mmachine m)
SO3LightSetSourceSize : defines the source size of a rect light.
int SO3LightGetSpotInnerAngle(mmachine m)
SO3LightGetSpotInnerAngle : Get the spot inner angle of a spot light.
int SO3LightSetShadowFarDistance(mmachine m)
SO3LightSetShadowFarDistance : defines shadows far distance of a light.

Definition at line 1301 of file SCOLLight.cpp.