Project

General

Profile

SO3Engine
Materials

Functions

int SO3DynamicCubeMapCreate (mmachine m)
 main include More...
 
int SO3DynamicCubeMapSetTargetMaterial (mmachine m)
 SO3DynamicCubeMapSetTargetMaterial : Set the material on wich the rendered texture will be setted. The cube map is automatically setted to enable when a valid material is passed. More...
 
int SO3DynamicCubeMapGetEnable (mmachine m)
 SO3DynamicCubeMapGetEnable : Get the enable state for the dynamic cube map. More...
 
int SO3DynamicCubeMapSetEnable (mmachine m)
 SO3DynamicCubeMapSetEnable : Set the Enable state for dynamic cube map. More...
 
int SO3DynamicCubeMapGetAutoUpdate (mmachine m)
 SO3DynamicCubeMapGetAutoUpdate : Get the auto update state (is the cube map update each frame?) for the dynamic cube map. More...
 
int SO3DynamicCubeMapSetAutoUpdate (mmachine m)
 SO3DynamicCubeMapSetAutoUpdate : Set the AutoUpdate state (refresh every frame) for dynamic cube map. More...
 
int SO3DynamicCubeMapGetTextureSize (mmachine m)
 SO3DynamicCubeMapGetTextureSize : Get the size of the dynamic cube map texture. More...
 
int SO3DynamicCubeMapSetTextureSize (mmachine m)
 SO3DynamicCubeMapSetTextureSize : Set the size of the dynamic cube map texture. More...
 
int SO3DynamicCubeMapUpdate (mmachine m)
 SO3DynamicCubeMapUpdate : manually update a dynamic cube map (in case autoUpdate is set to false);. More...
 
int SO3DynamicReflectionMapCreate (mmachine m)
 main include More...
 
int SO3DynamicReflectionMapSetTargetMaterial (mmachine m)
 SO3DynamicReflectionMapSetTargetMaterial : Set the material on wich the rendered texture will be setted. The plane reflection map is automatically setted to enable when a valid material is passed. More...
 
int SO3DynamicReflectionMapGetEnable (mmachine m)
 SO3DynamicReflectionMapGetEnable : Get the enable state for the dynamic reflection map. More...
 
int SO3DynamicReflectionMapSetEnable (mmachine m)
 SO3DynamicReflectionMapSetEnable : Set the Enable state for dynamic reflection map. More...
 
int SO3DynamicReflectionMapGetRevertClipPlane (mmachine m)
 SO3DynamicReflectionMapGetRevertClipPlane : Get the revert clip plane state (is the camera clip plane up or down?) for the dynamic reflection map. More...
 
int SO3DynamicReflectionMapSetRevertClipPlane (mmachine m)
 SO3DynamicReflectionMapSetRevertClipPlane : Set the revert clip plane state for dynamic reflection map. More...
 
int SO3DynamicReflectionMapGetTextureSize (mmachine m)
 SO3DynamicReflectionMapGetTextureSize : Get the size of the dynamic reflection map texture. More...
 
int SO3DynamicReflectionMapSetTextureSize (mmachine m)
 SO3DynamicReflectionMapSetTextureSize : Set the size of the dynamic reflection map texture. More...
 
int SO3FlashControlCreateOnMaterial (mmachine m)
 SO3FlashControlCreateOnMaterial : Set a texture flash on a material. More...
 
int SO3MaterialCreate (mmachine m)
 main include More...
 
int SO3MaterialDestroy (mmachine m)
 SO3MaterialDestroy : Destroy a material. More...
 
int SO3MaterialGetName (mmachine m)
 SO3MaterialGetName : Return the material name. More...
 
int SO3MaterialSetAmbient (mmachine m)
 SO3MaterialSetAmbient : defines ambient color of a material. More...
 
int SO3MaterialSetAmbientByTechAndPass (mmachine m)
 SO3MaterialSetAmbientByTechAndPass : defines ambient color by technique and pass of a material. More...
 
int SO3MaterialSetDiffuse (mmachine m)
 SO3MaterialSetDiffuse : defines diffuse color of a material. More...
 
int SO3MaterialSetDiffuseByTechAndPass (mmachine m)
 SO3MaterialSetDiffuseByTechAndPass : defines diffuse color by technique and pass of a material. More...
 
int SO3MaterialGetReceiveShadows (mmachine m)
 SO3MaterialGetReceiveShadows : Get the receive shadow state for material. More...
 
int SO3MaterialSetSelfIllumination (mmachine m)
 SO3MaterialSetSelfIllumination : defines self illuminaton color of a material. More...
 
int SO3MaterialSetSelfIlluminationByTechAndPass (mmachine m)
 SO3MaterialSetSelfIlluminationByTechAndPass : defines self illumination color by technique and pass of a material. More...
 
int SO3MaterialSetSpecular (mmachine m)
 SO3MaterialSetSpecular : defines specular color of a material. More...
 
int SO3MaterialSetSpecularByTechAndPass (mmachine m)
 SO3MaterialSetSpecularByTechAndPass : defines specular color by technique and pass of a material. More...
 
int SO3MaterialSetShininess (mmachine m)
 SO3MaterialSetShininess : defines shininess value of a material. More...
 
int SO3MaterialSetShininessByTechAndPass (mmachine m)
 SO3MaterialSetShininessByTechAndPass : defines shininess value by technique and pass of a material. More...
 
int SO3MaterialGetDiffuseByTechAndPass (mmachine m)
 SO3MaterialGetDiffuseByTechAndPass : Get the diffuse color by Technique and Pass. More...
 
int SO3MaterialGetAmbientByTechAndPass (mmachine m)
 SO3MaterialGetAmbientByTechAndPass : Get the ambient color by Technique and Pass. More...
 
int SO3MaterialGetSpecularByTechAndPass (mmachine m)
 SO3MaterialGetSpecularByTechAndPass : Get the specular color by Technique and Pass. More...
 
int SO3MaterialGetShininessByTechAndPass (mmachine m)
 SO3MaterialGetShininessByTechAndPass : Get the Shininess value by Technique and Pass. More...
 
int SO3MaterialGetSelfIlluminationByTechAndPass (mmachine m)
 SO3MaterialGetSelfIlluminationByTechAndPass : Get the self illumination color by Technique and Pass. More...
 
int SO3MaterialIsLighting (mmachine m)
 SO3MaterialIsLighting : defines light state for a material. More...
 
int SO3MaterialNumberOfTechniques (mmachine m)
 SO3MaterialNumberOfTechniques : Get the number of techniques. More...
 
int SO3MaterialNumberOfPassesByTechnique (mmachine m)
 SO3MaterialNumberOfPassesByTechnique : Get the number of passes by technique. More...
 
int SO3MaterialNumberOfTexturesByTechniqueAndPass (mmachine m)
 SO3MaterialNumberOfTexturesByTechniqueAndPass : Get the number of textures by technique and pass. More...
 
int SO3MaterialTechniqueGetNameByIndex (mmachine m)
 SO3MaterialTechniqueGetNameByIndex : return the name of a technique. More...
 
int SO3MaterialTechniqueGetIndexByName (mmachine m)
 SO3MaterialTechniqueGetIndexByName : return the index of a technique by name. More...
 
int SO3MaterialPassGetNameByIndex (mmachine m)
 SO3MaterialPassGetNameByIndex : return the name of a pass. More...
 
int SO3MaterialPassGetIndexByName (mmachine m)
 SO3MaterialPassGetIndexByName : return the index of a pass by name. More...
 
int SO3MaterialTextureUnitGetNameByIndex (mmachine m)
 SO3MaterialTextureUnitGetNameByIndex : return the name of a texture unit. More...
 
int SO3MaterialTextureUnitGetIndexByName (mmachine m)
 SO3MaterialTextureUnitGetIndexByName : return the index of a Texture unit by name. More...
 
int SO3MaterialSetReceiveShadows (mmachine m)
 SO3MaterialSetReceiveShadows : defines receive shadow state for a given material. More...
 
int SO3MaterialSetTexture (mmachine m)
 SO3MaterialSetTexture : Set a texture on a material. More...
 
int SO3MaterialGetTexture (mmachine m)
 SO3MaterialGetTexture : Get a texture from a material. More...
 
int SO3MaterialSetTextureByType (mmachine m)
 SO3MaterialSetTextureByType : Set a texture on a material by type. More...
 
int SO3MaterialRemoveTexture (mmachine m)
 SO3MaterialRemoveTexture : Remove a texture from a material. More...
 
int SO3MaterialTextureUnitGetIndexByType (mmachine m)
 SO3MaterialTextureUnitGetIndexByType : Get a texture from a material by it's type. More...
 
int SO3GetSceneTexture (mmachine m)
 SO3GetSceneTexture : Get a texture from a scene. More...
 
int SO3TextureCreate (mmachine m)
 SO3TextureCreate : Create a texture unit. More...
 
int SO3TextureDestroy (mmachine m)
 SO3TextureDestroy : Destroy a texture unit. More...
 
int SO3TextureGetName (mmachine m)
 SO3TextureGetName : Return the name of a texture. More...
 
int SO3TextureManagerGetMemoryUsage (mmachine m)
 SO3TextureManagerGetMemoryUsage : Return the memory usage of all textures in the scene. More...
 
int SO3TextureBlit (mmachine m)
 SO3TextureBlit : Blit a ObjBitmap on a texture. More...
 
int SO3TextureBlitAlpha (mmachine m)
 SO3TextureBlitAlpha : Blit a AlphaBitmap on a texture. More...
 
int SO3MaterialSetTextureUScroll (mmachine m)
 SO3MaterialSetTextureUScroll : Sets the translation offset of the texture, ie scrolls the texture, for the U value. More...
 
int SO3MaterialGetTextureUScroll (mmachine m)
 SO3MaterialGetTextureUScroll : Gets the translation offset of the texture, ie scrolls the texture, for the U value. More...
 
int SO3MaterialSetTextureVScroll (mmachine m)
 SO3MaterialSetTextureVScroll : Sets the translation offset of the texture, ie scrolls the texture, for the V value. More...
 
int SO3MaterialGetTextureVScroll (mmachine m)
 SO3MaterialGetTextureVScroll : Gets the translation offset of the texture, ie scrolls the texture, for the V value. More...
 
int SO3MaterialSetTextureUScale (mmachine m)
 SO3MaterialSetTextureUScale : Sets the scale value of the texture, for the U value. More...
 
int SO3MaterialGetTextureUScale (mmachine m)
 SO3MaterialGetTextureUScale : Gets the scale of the texture, for the U value. More...
 
int SO3MaterialSetTextureVScale (mmachine m)
 SO3MaterialSetTextureVScale : Sets the scale of the texture, for the V value. More...
 
int SO3MaterialGetTextureVScale (mmachine m)
 SO3MaterialGetTextureVScale : Gets the scale of the texture, for the V value. More...
 
int SO3MaterialSetTextureRotate (mmachine m)
 SO3MaterialSetTextureRotate : Rotate the texture. More...
 
int SO3MaterialGetTextureRotate (mmachine m)
 SO3MaterialGetTextureRotate : Gets the rotation of the texture. More...
 
int SO3MaterialSetTextureBlendFactor (mmachine m)
 SO3MaterialSetTextureBlendFactor : Set the texture blend factor (used for reflection map) More...
 
int SO3MaterialGetTextureBlendFactor (mmachine m)
 SO3MaterialGetTextureBlendFactor : Gets the texture blend factor. More...
 
int SO3MaterialSetTextureRotateAnimation (mmachine m)
 SO3MaterialSetTextureRotateAnimation : Set a rotate animation on the texture. More...
 
int SO3MaterialSetTextureScrollAnimation (mmachine m)
 SO3MaterialSetTextureScrollAnimation : Set a scroll animation on the texture. More...
 
int SO3MaterialGetPassVertexProgramParameters (mmachine m)
 SO3MaterialGetPassVertexProgramParameters : Retrieve all the vertex program parameters than can be setted. More...
 
int SO3MaterialGetPassFragmentProgramParameters (mmachine m)
 SO3MaterialGetPassFragmentProgramParameters : Retrieve all the fragment program parameters than can be setted. More...
 
int SO3MaterialSetPassAlphaRejection (mmachine m)
 SO3MaterialSetPassAlphaRejection : Sets alpha rejection parameters. More...
 
int SO3MaterialGetPassAlphaRejectionFunction (mmachine m)
 SO3MaterialGetPassAlphaRejectionFunction : Retrieve the alpha rejection function. More...
 
int SO3MaterialGetPassAlphaRejectionValue (mmachine m)
 SO3MaterialGetPassAlphaRejectionValue : Retrieve the alpha rejection value. More...
 
int SO3MaterialGetPassAlphaToCoverage (mmachine m)
 SO3MaterialGetPassAlphaToCoverage : Retrieve if the pass use alpha to coverage method. More...
 
int SO3MaterialGetPassDepthCheckEnabled (mmachine m)
 SO3MaterialGetPassDepthCheckEnabled : Retrieve if the pass use depth checking to validate fragments. More...
 
int SO3MaterialSetPassDepthCheckEnabled (mmachine m)
 SO3MaterialSetPassDepthCheckEnabled : Set if the pass must check depth to validate fragments. More...
 
int SO3MaterialGetPassDepthWriteEnabled (mmachine m)
 SO3MaterialGetPassDepthWriteEnabled : Retrieve if the pass use depth write when a fragment is validated (does the fragment depth is written to depth buffer). More...
 
int SO3MaterialSetPassDepthWriteEnabled (mmachine m)
 SO3MaterialSetPassDepthWriteEnabled : Set if the pass must write a validated fragment depth information to depth buffer. More...
 
int SO3MaterialGetPassDepthFunction (mmachine m)
 SO3MaterialGetPassDepthFunction : Retrieve the function used to compare a fragment depth to depth buffer value. More...
 
int SO3MaterialSetPassDepthFunction (mmachine m)
 SO3MaterialSetPassDepthFunction : Sets the compare function to use to compare a fragment depth with depth buffer value. More...
 
int SO3MaterialGetPassColourWriteEnabled (mmachine m)
 SO3MaterialGetPassColourWriteEnabled : Retrieve if the pass use colour write when a fragment is validated (does the fragment depth is written to depth buffer). More...
 
int SO3MaterialSetPassColourWriteEnabled (mmachine m)
 SO3MaterialSetPassColourWriteEnabled : Set if the pass must write the colour. More...
 
int SO3MaterialGetPassSourceBlendFactor (mmachine m)
 SO3MaterialGetPassSourceBlendFactor : Retrieve pass source blend factor. More...
 
int SO3MaterialGetPassDestBlendFactor (mmachine m)
 SO3MaterialGetPassDestBlendFactor : Retrieve pass destination blend factor. More...
 
int SO3MaterialGetPassSourceBlendFactorAlpha (mmachine m)
 SO3MaterialGetPassSourceBlendFactorAlpha : Retrieve pass source blend factor for alpha. More...
 
int SO3MaterialGetPassDestBlendFactorAlpha (mmachine m)
 SO3MaterialGetPassDestBlendFactorAlpha : Retrieve pass destination blend factor for alpha. More...
 
int SO3MaterialSetPassSceneBlending (mmachine m)
 SO3MaterialSetPassSceneBlending : Sets pass scene blending. More...
 
int SO3MaterialGetPassSceneBlendingOperation (mmachine m)
 SO3MaterialGetPassSceneBlendingOperation : Retrieve pass scene blending operation. More...
 
int SO3MaterialGetPassSceneBlendingOperationAlpha (mmachine m)
 SO3MaterialGetPassSceneBlendingOperationAlpha : Retrieve pass scene blending operation for alpha. More...
 
int SO3MaterialSetPassSceneBlendingOperation (mmachine m)
 SO3MaterialSetPassSceneBlendingOperation : Sets pass scene blending operation. More...
 
int SO3MaterialSetPassCullingEnable (mmachine m)
 SO3MaterialSetPassCullingEnable : Sets pass culling state. More...
 
int SO3MaterialGetPassCullingEnable (mmachine m)
 SO3MaterialGetPassCullingEnable : Gets pass culling state. More...
 
int SO3MaterialSetPassUseVertexColor (mmachine m)
 SO3MaterialSetPassUseVertexColor : Sets pass vertex color state. More...
 
int SO3MaterialGetPassUseVertexColor (mmachine m)
 SO3MaterialGetPassUseVertexColor : Gets pass vertex color state. More...
 
int SO3MaterialAddTechnique (mmachine m)
 SO3MaterialAddTechnique : Add a technique on a material. More...
 
int SO3MaterialRemoveTechnique (mmachine m)
 SO3MaterialRemoveTechnique : Remove a technique on a material. More...
 
int SO3MaterialSetTechniqueSchemeName (mmachine m)
 SO3MaterialSetTechniqueSchemeName : Set a technique scheme name on a material. More...
 
int SO3MaterialAddPass (mmachine m)
 SO3MaterialAddPass : Add a pass on a material technique. More...
 
int SO3MaterialRemovePass (mmachine m)
 SO3MaterialRemovePass : Remove a pass on a material technique. More...
 
int SO3MaterialSetPassPolygonMode (mmachine m)
 SO3MaterialSetPassPolygonMode : Sets pass polygon mode. More...
 
int SO3MaterialGetPassPolygonMode (mmachine m)
 SO3MaterialGetPassPolygonMode : Get pass polygon mode. More...
 
int SO3MaterialSetPassPointSize (mmachine m)
 SO3MaterialSetPassPointSize : Sets pass point size. More...
 
int SO3MaterialGetPassPointSize (mmachine m)
 SO3MaterialGetPassPointSize : Get pass point size. More...
 
int SO3MaterialSetPassLighting (mmachine m)
 SO3MaterialSetPassLighting : Sets pass lighting state. More...
 
int SO3MaterialGetPassLighting (mmachine m)
 SO3MaterialGetPassLighting : Get pass lighting state. More...
 
int SO3MaterialSetIgnoreSlicePlane (mmachine m)
 SO3MaterialSetIgnoreSlicePlane : Set the material ignore slice plane state. More...
 
int SO3MaterialExport (mmachine m)
 SO3MaterialExport : Write a material script to a file. More...
 
int SO3MaterialGetScriptPath (mmachine m)
 SO3MaterialGetScriptPath : Gets the material script path. More...
 
int SO3MaterialCountInScript (mmachine m)
 SO3MaterialCountInScript : Gets the number of materials in a material script. More...
 
int SO3MaterialRewriteScript (mmachine m)
 SO3MaterialRewriteScript : Rewrite a material script (usefull to remove deleted materials) More...
 
int SO3RenderToTextureCreate (mmachine m)
 main include More...
 
int SO3RenderToTextureSetTargetMaterial (mmachine m)
 SO3RenderToTextureSetTargetMaterial : Set the material on wich the rendered texture will be setted. The render to texture object is automatically setted to enable when a valid material is passed. More...
 
int SO3RenderToTextureGetEnable (mmachine m)
 SO3RenderToTextureGetEnable : Get the enable state for the render to texture object. More...
 
int SO3RenderToTextureSetEnable (mmachine m)
 SO3RenderToTextureSetEnable : Set the Enable state for render to texture object. More...
 
int SO3RenderToTextureGetAutoUpdate (mmachine m)
 SO3RenderToTextureGetAutoUpdate : Get the auto update state (is the render to texture object should be updated on every frame?) for the render to texture object. More...
 
int SO3RenderToTextureSetAutoUpdate (mmachine m)
 SO3RenderToTextureSetAutoUpdate : Set the AutoUpdate state (refresh every frame) for render to texture object. More...
 
int SO3RenderToTextureGetTextureSize (mmachine m)
 SO3RenderToTextureGetTextureSize : Get the size of the target texture. More...
 
int SO3RenderToTextureSetTextureSize (mmachine m)
 SO3RenderToTextureSetTextureSize : Set the size of the target texture. More...
 
int SO3RenderToTextureUpdate (mmachine m)
 SO3RenderToTextureUpdate : manually update a dynamic render to texture object (in case autoUpdate is set to false);. More...
 

Detailed Description

Scol functions definition

Function Documentation

◆ SO3DynamicCubeMapCreate()

int SO3DynamicCubeMapCreate ( mmachine  m)

main include

SO3DynamicCubeMapCreate : Create a new dynamic cube map

Prototype: fun [SO3_SCENE S] SO3_OBJECT

Parameters
SO3_SCENE: current scene
S: given name for the new dynamic cube map
Returns
SO3_OBJECT : Created object if success , NIL otherwise

Definition at line 51 of file SCOLDynamicCubeMap.cpp.

◆ SO3DynamicCubeMapGetAutoUpdate()

int SO3DynamicCubeMapGetAutoUpdate ( mmachine  m)

SO3DynamicCubeMapGetAutoUpdate : Get the auto update state (is the cube map update each frame?) for the dynamic cube map.

Prototype: fun [SO3_OBJECT] I

Parameters
SO3_OBJECT: current node
Returns
I : Auto update state if success , NIL otherwise

Definition at line 279 of file SCOLDynamicCubeMap.cpp.

◆ SO3DynamicCubeMapGetEnable()

int SO3DynamicCubeMapGetEnable ( mmachine  m)

SO3DynamicCubeMapGetEnable : Get the enable state for the dynamic cube map.

Prototype: fun [SO3_OBJECT] I

Parameters
SO3_OBJECT: current node
Returns
I : Enable state if success , NIL otherwise

Definition at line 188 of file SCOLDynamicCubeMap.cpp.

◆ SO3DynamicCubeMapGetTextureSize()

int SO3DynamicCubeMapGetTextureSize ( mmachine  m)

SO3DynamicCubeMapGetTextureSize : Get the size of the dynamic cube map texture.

Prototype: fun [SO3_OBJECT] I

Parameters
SO3_OBJECT: current node
Returns
I : Enable state if success , NIL otherwise

Definition at line 371 of file SCOLDynamicCubeMap.cpp.

◆ SO3DynamicCubeMapSetAutoUpdate()

int SO3DynamicCubeMapSetAutoUpdate ( mmachine  m)

SO3DynamicCubeMapSetAutoUpdate : Set the AutoUpdate state (refresh every frame) for dynamic cube map.

Prototype: fun [SO3_OBJECT I] I

Parameters
SO3_OBJECT: current node
I: bool for enable state
Returns
I : 1 if success , NIL otherwise

Definition at line 324 of file SCOLDynamicCubeMap.cpp.

◆ SO3DynamicCubeMapSetEnable()

int SO3DynamicCubeMapSetEnable ( mmachine  m)

SO3DynamicCubeMapSetEnable : Set the Enable state for dynamic cube map.

Prototype: fun [SO3_OBJECT I] I

Parameters
SO3_OBJECT: current node
I: bool for enable state
Returns
I : 1 if success , NIL otherwise

Definition at line 233 of file SCOLDynamicCubeMap.cpp.

◆ SO3DynamicCubeMapSetTargetMaterial()

int SO3DynamicCubeMapSetTargetMaterial ( mmachine  m)

SO3DynamicCubeMapSetTargetMaterial : Set the material on wich the rendered texture will be setted. The cube map is automatically setted to enable when a valid material is passed.

Prototype: fun [SO3_OBJECT SO3_MATERIAL I I I] SO3_OBJECT

Parameters
SO3_OBJECT
SO3_MATERIAL:
I: Technique of the material where to render the cubeMap.
I: Pass of the material where to render the cubeMap.
I: Texture unit of the material where to render the cubeMap.
Returns
SO3_OBJECT : Created material if success , NIL otherwise

Definition at line 120 of file SCOLDynamicCubeMap.cpp.

◆ SO3DynamicCubeMapSetTextureSize()

int SO3DynamicCubeMapSetTextureSize ( mmachine  m)

SO3DynamicCubeMapSetTextureSize : Set the size of the dynamic cube map texture.

Prototype: fun [SO3_OBJECT I] I

Parameters
SO3_OBJECT: current node
I: bool for enable state
Returns
I : 1 if success , NIL otherwise

Definition at line 411 of file SCOLDynamicCubeMap.cpp.

◆ SO3DynamicCubeMapUpdate()

int SO3DynamicCubeMapUpdate ( mmachine  m)

SO3DynamicCubeMapUpdate : manually update a dynamic cube map (in case autoUpdate is set to false);.

Prototype: fun [SO3_OBJECT] I

Parameters
SO3_OBJECT: current node
Returns
I : 1 if success , NIL otherwise

Definition at line 461 of file SCOLDynamicCubeMap.cpp.

◆ SO3DynamicReflectionMapCreate()

int SO3DynamicReflectionMapCreate ( mmachine  m)

main include

SO3DynamicReflectionMapCreate : Create a new dynamic plane reflection map

Prototype: fun [SO3_SCENE SO3_VIEWPORT S] SO3_OBJECT

Parameters
SO3_SCENE: current scene
SO3_VIEWPORT: viewport for reflection calculation
S: given name for the new dynamic plane reflection map
Returns
SO3_OBJECT : Created object if success , NIL otherwise

Definition at line 52 of file SCOLDynamicReflectionMap.cpp.

◆ SO3DynamicReflectionMapGetEnable()

int SO3DynamicReflectionMapGetEnable ( mmachine  m)

SO3DynamicReflectionMapGetEnable : Get the enable state for the dynamic reflection map.

Prototype: fun [SO3_OBJECT] I

Parameters
SO3_OBJECT: current node
Returns
I : Enable state if success , NIL otherwise

Definition at line 198 of file SCOLDynamicReflectionMap.cpp.

◆ SO3DynamicReflectionMapGetRevertClipPlane()

int SO3DynamicReflectionMapGetRevertClipPlane ( mmachine  m)

SO3DynamicReflectionMapGetRevertClipPlane : Get the revert clip plane state (is the camera clip plane up or down?) for the dynamic reflection map.

Prototype: fun [SO3_OBJECT] I

Parameters
SO3_OBJECT: current node
Returns
I : revert clip plane state if success , NIL otherwise

Definition at line 289 of file SCOLDynamicReflectionMap.cpp.

◆ SO3DynamicReflectionMapGetTextureSize()

int SO3DynamicReflectionMapGetTextureSize ( mmachine  m)

SO3DynamicReflectionMapGetTextureSize : Get the size of the dynamic reflection map texture.

Prototype: fun [SO3_OBJECT] I

Parameters
SO3_OBJECT: current node
Returns
I : Enable state if success , NIL otherwise

Definition at line 381 of file SCOLDynamicReflectionMap.cpp.

◆ SO3DynamicReflectionMapSetEnable()

int SO3DynamicReflectionMapSetEnable ( mmachine  m)

SO3DynamicReflectionMapSetEnable : Set the Enable state for dynamic reflection map.

Prototype: fun [SO3_OBJECT I] I

Parameters
SO3_OBJECT: current node
I: bool for enable state
Returns
I : 1 if success , NIL otherwise

Definition at line 243 of file SCOLDynamicReflectionMap.cpp.

◆ SO3DynamicReflectionMapSetRevertClipPlane()

int SO3DynamicReflectionMapSetRevertClipPlane ( mmachine  m)

SO3DynamicReflectionMapSetRevertClipPlane : Set the revert clip plane state for dynamic reflection map.

Prototype: fun [SO3_OBJECT I] I

Parameters
SO3_OBJECT: current node
I: bool, 1 to revert the clip plane -Y
Returns
I : 1 if success , NIL otherwise

Definition at line 334 of file SCOLDynamicReflectionMap.cpp.

◆ SO3DynamicReflectionMapSetTargetMaterial()

int SO3DynamicReflectionMapSetTargetMaterial ( mmachine  m)

SO3DynamicReflectionMapSetTargetMaterial : Set the material on wich the rendered texture will be setted. The plane reflection map is automatically setted to enable when a valid material is passed.

Prototype: fun [SO3_OBJECT SO3_MATERIAL I I I] SO3_OBJECT

Parameters
SO3_OBJECT
SO3_MATERIAL:
I: Technique of the material where to render the reflection map.
I: Pass of the material where to render the reflection map.
I: Texture unit of the material where to render the reflection map.
Returns
SO3_OBJECT : Created material if success , NIL otherwise

Definition at line 130 of file SCOLDynamicReflectionMap.cpp.

◆ SO3DynamicReflectionMapSetTextureSize()

int SO3DynamicReflectionMapSetTextureSize ( mmachine  m)

SO3DynamicReflectionMapSetTextureSize : Set the size of the dynamic reflection map texture.

Prototype: fun [SO3_OBJECT I] I

Parameters
SO3_OBJECT: current node
I: bool for enable state
Returns
I : 1 if success , NIL otherwise

Definition at line 421 of file SCOLDynamicReflectionMap.cpp.

◆ SO3FlashControlCreateOnMaterial()

int SO3FlashControlCreateOnMaterial ( mmachine  m)

SO3FlashControlCreateOnMaterial : Set a texture flash on a material.

Prototype: fun [SO3_SCENE SO3_MATERIAL S I I I I I] SO3_WIDGET

Parameters
SO3_SCENE: current scene
SO3_MATERIAL: current material
S: new Name
I: width
I: height
I: given technique
I: given pass
I: index of the texture
Returns
SO3_FLASH_CONTROL : The flash control if success , NIL otherwise

Definition at line 274 of file SCOLFlashControl.cpp.

◆ SO3GetSceneTexture()

int SO3GetSceneTexture ( mmachine  m)

SO3GetSceneTexture : Get a texture from a scene.

Prototype: fun [SO3_SCENE S S] SO3_TEXTURE

Parameters
SO3_MATERIAL: current material
S: resource group
S: texture name
Returns
SO3_TEXTURE : Return the texture if success , NIL otherwise

Definition at line 2177 of file SCOLMaterial.cpp.

◆ SO3MaterialAddPass()

int SO3MaterialAddPass ( mmachine  m)

SO3MaterialAddPass : Add a pass on a material technique.

Prototype: fun [SO3_MATERIAL] I

Parameters
SO3_MATERIAL: Target material.
I: Technique index.
Returns
I : 1 if success, NIL on error

Definition at line 5673 of file SCOLMaterial.cpp.

◆ SO3MaterialAddTechnique()

int SO3MaterialAddTechnique ( mmachine  m)

SO3MaterialAddTechnique : Add a technique on a material.

Prototype: fun [SO3_MATERIAL] I

Parameters
SO3_MATERIAL: Target material.
Returns
I : 1 if success, NIL on error

Definition at line 5527 of file SCOLMaterial.cpp.

◆ SO3MaterialCountInScript()

int SO3MaterialCountInScript ( mmachine  m)

SO3MaterialCountInScript : Gets the number of materials in a material script.

Prototype: fun [P] I

Parameters
P: material script path
Returns
I : number of materials in script on success, NIL on error

Definition at line 6317 of file SCOLMaterial.cpp.

◆ SO3MaterialCreate()

int SO3MaterialCreate ( mmachine  m)

main include

SO3MaterialCreate : Create a new material

Prototype: fun [SO3_SCENE S S] SO3_MATERIAL

Parameters
SO3_SCENE: current scene
S: given name for the new material
S: group name
Returns
SO3_MATERIAL : Created material if success, NIL otherwise

Definition at line 67 of file SCOLMaterial.cpp.

◆ SO3MaterialDestroy()

int SO3MaterialDestroy ( mmachine  m)

SO3MaterialDestroy : Destroy a material.

Prototype: fun [SO3_MATERIAL] I

Parameters
SO3_MATERIAL: current material
Returns
I : 1 if success, NIL otherwise

Definition at line 132 of file SCOLMaterial.cpp.

◆ SO3MaterialExport()

int SO3MaterialExport ( mmachine  m)

SO3MaterialExport : Write a material script to a file.

Prototype: fun [SO3_MATERIAL P] I

Parameters
SO3_MATERIAL: Target material.
P: The file path to the material script file. It can be nil, in that case the material is written in it's original file source
Returns
I : 1 if success, NIL on error

Definition at line 6222 of file SCOLMaterial.cpp.

◆ SO3MaterialGetAmbientByTechAndPass()

int SO3MaterialGetAmbientByTechAndPass ( mmachine  m)

SO3MaterialGetAmbientByTechAndPass : Get the ambient color by Technique and Pass.

Prototype: fun [SO3_MATERIAL I I] I

Parameters
SO3_MATERIAL: current material
I: index of technique
I: index for pass
Returns
I : Ambient color (rgba) if success, NIL otherwise

Definition at line 856 of file SCOLMaterial.cpp.

◆ SO3MaterialGetDiffuseByTechAndPass()

int SO3MaterialGetDiffuseByTechAndPass ( mmachine  m)

SO3MaterialGetDiffuseByTechAndPass : Get the diffuse color by Technique and Pass.

Prototype: fun [SO3_MATERIAL I I] I

Parameters
SO3_MATERIAL: current material
I: index of technique
I: index for pass
Returns
I : Diffuse color (rgba) if success, NIL otherwise

Definition at line 790 of file SCOLMaterial.cpp.

◆ SO3MaterialGetName()

int SO3MaterialGetName ( mmachine  m)

SO3MaterialGetName : Return the material name.

Prototype: fun [SO3_MATERIAL] S

Parameters
SO3_MATERIAL: current material
Returns
S : Material name if success, NIL otherwise

Definition at line 158 of file SCOLMaterial.cpp.

◆ SO3MaterialGetPassAlphaRejectionFunction()

int SO3MaterialGetPassAlphaRejectionFunction ( mmachine  m)

SO3MaterialGetPassAlphaRejectionFunction : Retrieve the alpha rejection function.

Prototype: fun [SO3_MATERIAL I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
Returns
I : Alpha rejection function on success, NIL otherwise

Definition at line 4031 of file SCOLMaterial.cpp.

◆ SO3MaterialGetPassAlphaRejectionValue()

int SO3MaterialGetPassAlphaRejectionValue ( mmachine  m)

SO3MaterialGetPassAlphaRejectionValue : Retrieve the alpha rejection value.

Prototype: fun [SO3_MATERIAL I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
Returns
I : Alpha rejection value (between 0 and 128) on success, NIL otherwise

Definition at line 4092 of file SCOLMaterial.cpp.

◆ SO3MaterialGetPassAlphaToCoverage()

int SO3MaterialGetPassAlphaToCoverage ( mmachine  m)

SO3MaterialGetPassAlphaToCoverage : Retrieve if the pass use alpha to coverage method.

Prototype: fun [SO3_MATERIAL I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
Returns
I : 1 if Alpha to coverage is enabled, 0 if not, NIL on error

Definition at line 4153 of file SCOLMaterial.cpp.

◆ SO3MaterialGetPassColourWriteEnabled()

int SO3MaterialGetPassColourWriteEnabled ( mmachine  m)

SO3MaterialGetPassColourWriteEnabled : Retrieve if the pass use colour write when a fragment is validated (does the fragment depth is written to depth buffer).

Prototype: fun [SO3_MATERIAL I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
Returns
I : 1 if colour write is enabled, 0 if not, NIL on error

Definition at line 4595 of file SCOLMaterial.cpp.

◆ SO3MaterialGetPassCullingEnable()

int SO3MaterialGetPassCullingEnable ( mmachine  m)

SO3MaterialGetPassCullingEnable : Gets pass culling state.

Prototype: fun [SO3_MATERIAL I I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
Returns
I : 1 if enable, 0 if not, NIL on error

Definition at line 5340 of file SCOLMaterial.cpp.

◆ SO3MaterialGetPassDepthCheckEnabled()

int SO3MaterialGetPassDepthCheckEnabled ( mmachine  m)

SO3MaterialGetPassDepthCheckEnabled : Retrieve if the pass use depth checking to validate fragments.

Prototype: fun [SO3_MATERIAL I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
Returns
I : 1 if depth check is enabled, 0 if not, NIL on error

Definition at line 4214 of file SCOLMaterial.cpp.

◆ SO3MaterialGetPassDepthFunction()

int SO3MaterialGetPassDepthFunction ( mmachine  m)

SO3MaterialGetPassDepthFunction : Retrieve the function used to compare a fragment depth to depth buffer value.

Prototype: fun [SO3_MATERIAL I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
Returns
I : Depth compare function if success, NIL on error

Definition at line 4468 of file SCOLMaterial.cpp.

◆ SO3MaterialGetPassDepthWriteEnabled()

int SO3MaterialGetPassDepthWriteEnabled ( mmachine  m)

SO3MaterialGetPassDepthWriteEnabled : Retrieve if the pass use depth write when a fragment is validated (does the fragment depth is written to depth buffer).

Prototype: fun [SO3_MATERIAL I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
Returns
I : 1 if depth write is enabled, 0 if not, NIL on error

Definition at line 4341 of file SCOLMaterial.cpp.

◆ SO3MaterialGetPassDestBlendFactor()

int SO3MaterialGetPassDestBlendFactor ( mmachine  m)

SO3MaterialGetPassDestBlendFactor : Retrieve pass destination blend factor.

Prototype: fun [SO3_MATERIAL I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
Returns
I : Destination blend factor if success, NIL on error

Definition at line 4783 of file SCOLMaterial.cpp.

◆ SO3MaterialGetPassDestBlendFactorAlpha()

int SO3MaterialGetPassDestBlendFactorAlpha ( mmachine  m)

SO3MaterialGetPassDestBlendFactorAlpha : Retrieve pass destination blend factor for alpha.

Prototype: fun [SO3_MATERIAL I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
Returns
I : Destination alpha blend factor if success, NIL on error

Definition at line 4905 of file SCOLMaterial.cpp.

◆ SO3MaterialGetPassFragmentProgramParameters()

int SO3MaterialGetPassFragmentProgramParameters ( mmachine  m)

SO3MaterialGetPassFragmentProgramParameters : Retrieve all the fragment program parameters than can be setted.

Prototype: fun [SO3_MATERIAL I I] [[S I] r1]

Parameters
SO3_MATERIAL:
I: Technique of the material.
I: Pass of the material.
Returns
[[S I] r1] : List of fragment program parameters, with theirs respective type

Definition at line 3731 of file SCOLMaterial.cpp.

◆ SO3MaterialGetPassLighting()

int SO3MaterialGetPassLighting ( mmachine  m)

SO3MaterialGetPassLighting : Get pass lighting state.

Prototype: fun [SO3_MATERIAL I I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
Returns
I : 1 if the lighting is enable, 0 otherwise, NIL on error

Definition at line 6109 of file SCOLMaterial.cpp.

◆ SO3MaterialGetPassPointSize()

int SO3MaterialGetPassPointSize ( mmachine  m)

SO3MaterialGetPassPointSize : Get pass point size.

Prototype: fun [SO3_MATERIAL I I I] F

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
Returns
F : the point size, NIL on error

Definition at line 5975 of file SCOLMaterial.cpp.

◆ SO3MaterialGetPassPolygonMode()

int SO3MaterialGetPassPolygonMode ( mmachine  m)

SO3MaterialGetPassPolygonMode : Get pass polygon mode.

Prototype: fun [SO3_MATERIAL I I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
Returns
I : the polygon mode, NIL on error

Definition at line 5842 of file SCOLMaterial.cpp.

◆ SO3MaterialGetPassSceneBlendingOperation()

int SO3MaterialGetPassSceneBlendingOperation ( mmachine  m)

SO3MaterialGetPassSceneBlendingOperation : Retrieve pass scene blending operation.

Prototype: fun [SO3_MATERIAL I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
Returns
I : Scene blending operation if success, NIL on error

Definition at line 5071 of file SCOLMaterial.cpp.

◆ SO3MaterialGetPassSceneBlendingOperationAlpha()

int SO3MaterialGetPassSceneBlendingOperationAlpha ( mmachine  m)

SO3MaterialGetPassSceneBlendingOperationAlpha : Retrieve pass scene blending operation for alpha.

Prototype: fun [SO3_MATERIAL I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
Returns
I : Alpha scene blending operation if success, NIL on error

Definition at line 5132 of file SCOLMaterial.cpp.

◆ SO3MaterialGetPassSourceBlendFactor()

int SO3MaterialGetPassSourceBlendFactor ( mmachine  m)

SO3MaterialGetPassSourceBlendFactor : Retrieve pass source blend factor.

Prototype: fun [SO3_MATERIAL I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
Returns
I : Source blend factor if success, NIL on error

Definition at line 4722 of file SCOLMaterial.cpp.

◆ SO3MaterialGetPassSourceBlendFactorAlpha()

int SO3MaterialGetPassSourceBlendFactorAlpha ( mmachine  m)

SO3MaterialGetPassSourceBlendFactorAlpha : Retrieve pass source blend factor for alpha.

Prototype: fun [SO3_MATERIAL I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
Returns
I : Source alpha blend factor if success, NIL on error

Definition at line 4844 of file SCOLMaterial.cpp.

◆ SO3MaterialGetPassUseVertexColor()

int SO3MaterialGetPassUseVertexColor ( mmachine  m)

SO3MaterialGetPassUseVertexColor : Gets pass vertex color state.

Prototype: fun [SO3_MATERIAL I I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
Returns
I : 1 if enable, 0 if not, NIL on error

Definition at line 5468 of file SCOLMaterial.cpp.

◆ SO3MaterialGetPassVertexProgramParameters()

int SO3MaterialGetPassVertexProgramParameters ( mmachine  m)

SO3MaterialGetPassVertexProgramParameters : Retrieve all the vertex program parameters than can be setted.

Prototype: fun [SO3_MATERIAL I I] [[S I] r1]

Parameters
SO3_MATERIAL:
I: Technique of the material.
I: Pass of the material.
Returns
[[S I] r1] : List of vertex program parameters, with theirs respective type

Definition at line 3520 of file SCOLMaterial.cpp.

◆ SO3MaterialGetReceiveShadows()

int SO3MaterialGetReceiveShadows ( mmachine  m)

SO3MaterialGetReceiveShadows : Get the receive shadow state for material.

Prototype: fun [SO3_MATERIAL] I

Parameters
SO3_MATERIAL: current material
Returns
I : for receive shadows state (1 enable, 0 disable) if success, NIL otherwise

Definition at line 417 of file SCOLMaterial.cpp.

◆ SO3MaterialGetScriptPath()

int SO3MaterialGetScriptPath ( mmachine  m)

SO3MaterialGetScriptPath : Gets the material script path.

Prototype: fun [SO3_MATERIAL] P

Parameters
SO3_MATERIAL: Target material.
Returns
S : the material script path on success, NIL on error

Definition at line 6273 of file SCOLMaterial.cpp.

◆ SO3MaterialGetSelfIlluminationByTechAndPass()

int SO3MaterialGetSelfIlluminationByTechAndPass ( mmachine  m)

SO3MaterialGetSelfIlluminationByTechAndPass : Get the self illumination color by Technique and Pass.

Prototype: fun [SO3_MATERIAL I I] F

Parameters
SO3_MATERIAL: current material
I: index of technique
I: index for pass
Returns
I : self illumination color(rgba) if success, NIL otherwise

Definition at line 1053 of file SCOLMaterial.cpp.

◆ SO3MaterialGetShininessByTechAndPass()

int SO3MaterialGetShininessByTechAndPass ( mmachine  m)

SO3MaterialGetShininessByTechAndPass : Get the Shininess value by Technique and Pass.

Prototype: fun [SO3_MATERIAL I I] F

Parameters
SO3_MATERIAL: current material
I: index of technique
I: index for pass
Returns
F : Shininess value if success, NIL otherwise

Definition at line 988 of file SCOLMaterial.cpp.

◆ SO3MaterialGetSpecularByTechAndPass()

int SO3MaterialGetSpecularByTechAndPass ( mmachine  m)

SO3MaterialGetSpecularByTechAndPass : Get the specular color by Technique and Pass.

Prototype: fun [SO3_MATERIAL I I] I

Parameters
SO3_MATERIAL: current material
I: index of technique
I: index for pass
Returns
I : Specular color (rgba) if success, NIL otherwise

Definition at line 922 of file SCOLMaterial.cpp.

◆ SO3MaterialGetTexture()

int SO3MaterialGetTexture ( mmachine  m)

SO3MaterialGetTexture : Get a texture from a material.

Prototype: fun [SO3_MATERIAL I I I] SO3_TEXTURE

Parameters
SO3_MATERIAL: current material
I: given technique
I: given pass
I: index of the texture
Returns
SO3_TEXTURE : Return the texture if success , NIL otherwise

Definition at line 1847 of file SCOLMaterial.cpp.

◆ SO3MaterialGetTextureBlendFactor()

int SO3MaterialGetTextureBlendFactor ( mmachine  m)

SO3MaterialGetTextureBlendFactor : Gets the texture blend factor.

Prototype: fun [SO3_MATERIAL I I I] F

Parameters
SO3_MATERIAL:
I: Technique of the material.
I: Pass of the material.
I: Texture unit of the material.
Returns
F : blend factor value, NIL if error

Definition at line 3320 of file SCOLMaterial.cpp.

◆ SO3MaterialGetTextureRotate()

int SO3MaterialGetTextureRotate ( mmachine  m)

SO3MaterialGetTextureRotate : Gets the rotation of the texture.

Prototype: fun [SO3_MATERIAL I I I] F

Parameters
SO3_MATERIAL:
I: Technique of the material.
I: Pass of the material.
I: Texture unit of the material.
Returns
F : rotation value, NIL if error

Definition at line 3186 of file SCOLMaterial.cpp.

◆ SO3MaterialGetTextureUScale()

int SO3MaterialGetTextureUScale ( mmachine  m)

SO3MaterialGetTextureUScale : Gets the scale of the texture, for the U value.

Prototype: fun [SO3_MATERIAL I I I] F

Parameters
SO3_MATERIAL:
I: Technique of the material.
I: Pass of the material.
I: Texture unit of the material.

Definition at line 2923 of file SCOLMaterial.cpp.

◆ SO3MaterialGetTextureUScroll()

int SO3MaterialGetTextureUScroll ( mmachine  m)

SO3MaterialGetTextureUScroll : Gets the translation offset of the texture, ie scrolls the texture, for the U value.

Prototype: fun [SO3_MATERIAL I I I] F

Parameters
SO3_MATERIAL:
I: Technique of the material.
I: Pass of the material.
I: Texture unit of the material.

Definition at line 2659 of file SCOLMaterial.cpp.

◆ SO3MaterialGetTextureVScale()

int SO3MaterialGetTextureVScale ( mmachine  m)

SO3MaterialGetTextureVScale : Gets the scale of the texture, for the V value.

Prototype: fun [SO3_MATERIAL I I I] F

Parameters
SO3_MATERIAL:
I: Technique of the material.
I: Pass of the material.
I: Texture unit of the material.

Definition at line 3055 of file SCOLMaterial.cpp.

◆ SO3MaterialGetTextureVScroll()

int SO3MaterialGetTextureVScroll ( mmachine  m)

SO3MaterialGetTextureVScroll : Gets the translation offset of the texture, ie scrolls the texture, for the V value.

Prototype: fun [SO3_MATERIAL I I I] F

Parameters
SO3_MATERIAL:
I: Technique of the material.
I: Pass of the material.
I: Texture unit of the material.

Definition at line 2791 of file SCOLMaterial.cpp.

◆ SO3MaterialIsLighting()

int SO3MaterialIsLighting ( mmachine  m)

SO3MaterialIsLighting : defines light state for a material.

Prototype: fun [SO3_MATERIAL I] I

Parameters
SO3_MATERIAL: current material
I: Light state (1 enable, 0 disable)
Returns
I : 1 if success, NIL otherwise

Definition at line 1118 of file SCOLMaterial.cpp.

◆ SO3MaterialNumberOfPassesByTechnique()

int SO3MaterialNumberOfPassesByTechnique ( mmachine  m)

SO3MaterialNumberOfPassesByTechnique : Get the number of passes by technique.

Prototype: fun [SO3_MATERIAL I] I

Parameters
SO3_MATERIAL: current material
I: techniques index
Returns
I : Number of pass if success, NIL otherwise

Definition at line 1201 of file SCOLMaterial.cpp.

◆ SO3MaterialNumberOfTechniques()

int SO3MaterialNumberOfTechniques ( mmachine  m)

SO3MaterialNumberOfTechniques : Get the number of techniques.

Prototype: fun [SO3_MATERIAL] I

Parameters
SO3_MATERIAL: current material
Returns
I : Number of techniques if success, NIL otherwise

Definition at line 1158 of file SCOLMaterial.cpp.

◆ SO3MaterialNumberOfTexturesByTechniqueAndPass()

int SO3MaterialNumberOfTexturesByTechniqueAndPass ( mmachine  m)

SO3MaterialNumberOfTexturesByTechniqueAndPass : Get the number of textures by technique and pass.

Prototype: fun [SO3_MATERIAL I I] I

Parameters
SO3_MATERIAL: current material
I: techniques index
I: pass index
Returns
I : Number of textures if success, NIL otherwise

Definition at line 1266 of file SCOLMaterial.cpp.

◆ SO3MaterialPassGetIndexByName()

int SO3MaterialPassGetIndexByName ( mmachine  m)

SO3MaterialPassGetIndexByName : return the index of a pass by name.

Prototype: fun [SO3_MATERIAL I S] I

Parameters
SO3_MATERIAL: current material
I: technique index
S: pass name
Returns
I : Pass index if success, NIL otherwise

Definition at line 1498 of file SCOLMaterial.cpp.

◆ SO3MaterialPassGetNameByIndex()

int SO3MaterialPassGetNameByIndex ( mmachine  m)

SO3MaterialPassGetNameByIndex : return the name of a pass.

Prototype: fun [SO3_MATERIAL I I] S

Parameters
SO3_MATERIAL: current material
I: technique index
I: pass index
Returns
S : pass name if success, NIL otherwise

Definition at line 1432 of file SCOLMaterial.cpp.

◆ SO3MaterialRemovePass()

int SO3MaterialRemovePass ( mmachine  m)

SO3MaterialRemovePass : Remove a pass on a material technique.

Prototype: fun [SO3_MATERIAL I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique index.
I: Pass index.
Returns
I : 1 if success, NIL on error

Definition at line 5722 of file SCOLMaterial.cpp.

◆ SO3MaterialRemoveTechnique()

int SO3MaterialRemoveTechnique ( mmachine  m)

SO3MaterialRemoveTechnique : Remove a technique on a material.

Prototype: fun [SO3_MATERIAL I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique index.
Returns
I : 1 if success, NIL on error

Definition at line 5572 of file SCOLMaterial.cpp.

◆ SO3MaterialRemoveTexture()

int SO3MaterialRemoveTexture ( mmachine  m)

SO3MaterialRemoveTexture : Remove a texture from a material.

Prototype: fun [SO3_MATERIAL I I I] I

Parameters
SO3_MATERIAL: current material
I: given technique
I: given pass
I: index of the texture
Returns
I : Return 1 on success , NIL otherwise

Definition at line 2023 of file SCOLMaterial.cpp.

◆ SO3MaterialRewriteScript()

int SO3MaterialRewriteScript ( mmachine  m)

SO3MaterialRewriteScript : Rewrite a material script (usefull to remove deleted materials)

Prototype: fun [P] I

Parameters
P: material script path
Returns
I : 1 on success, NIL on error

Definition at line 6358 of file SCOLMaterial.cpp.

◆ SO3MaterialSetAmbient()

int SO3MaterialSetAmbient ( mmachine  m)

SO3MaterialSetAmbient : defines ambient color of a material.

Prototype: fun [SO3_MATERIAL I] I

Parameters
SO3_MATERIAL: current material
I: given color (rgba)
Returns
I : 1 if success, NIL otherwise

Definition at line 188 of file SCOLMaterial.cpp.

◆ SO3MaterialSetAmbientByTechAndPass()

int SO3MaterialSetAmbientByTechAndPass ( mmachine  m)

SO3MaterialSetAmbientByTechAndPass : defines ambient color by technique and pass of a material.

Prototype: fun [SO3_MATERIAL I I I] I

Parameters
SO3_MATERIAL: current material
I: index of technique
I: index for pass
I: given color (rgba)
Returns
I : 1 if success, NIL otherwise

Definition at line 231 of file SCOLMaterial.cpp.

◆ SO3MaterialSetDiffuse()

int SO3MaterialSetDiffuse ( mmachine  m)

SO3MaterialSetDiffuse : defines diffuse color of a material.

Prototype: fun [SO3_MATERIAL I] I

Parameters
SO3_MATERIAL: current material
I: given color (rgba)
Returns
I : 1 if success, NIL otherwise

Definition at line 304 of file SCOLMaterial.cpp.

◆ SO3MaterialSetDiffuseByTechAndPass()

int SO3MaterialSetDiffuseByTechAndPass ( mmachine  m)

SO3MaterialSetDiffuseByTechAndPass : defines diffuse color by technique and pass of a material.

Prototype: fun [SO3_MATERIAL I I I] I

Parameters
SO3_MATERIAL: current material
I: index of technique
I: index for pass
I: given color (rgba)
Returns
I : 1 if success, NIL otherwise

Definition at line 347 of file SCOLMaterial.cpp.

◆ SO3MaterialSetIgnoreSlicePlane()

int SO3MaterialSetIgnoreSlicePlane ( mmachine  m)

SO3MaterialSetIgnoreSlicePlane : Set the material ignore slice plane state.

Prototype: fun [SO3_MATERIAL I] I

Parameters
SO3_MATERIAL: Target material.
I: new state
Returns
I : 1 if success, NIL on error

Definition at line 6172 of file SCOLMaterial.cpp.

◆ SO3MaterialSetPassAlphaRejection()

int SO3MaterialSetPassAlphaRejection ( mmachine  m)

SO3MaterialSetPassAlphaRejection : Sets alpha rejection parameters.

Prototype: fun [SO3_MATERIAL I I I I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
I: Alpha rejection function
I: Alpha rejection value (between 0 and 128)
I: 1 to use Alpha to Coverage, 0 to not use it.
Returns
I : 1 on success, NIL otherwise

Definition at line 3945 of file SCOLMaterial.cpp.

◆ SO3MaterialSetPassColourWriteEnabled()

int SO3MaterialSetPassColourWriteEnabled ( mmachine  m)

SO3MaterialSetPassColourWriteEnabled : Set if the pass must write the colour.

Prototype: fun [SO3_MATERIAL I I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
I: 1 to enable colour write, 0 to disable
Returns
I : 1 on success, NIL on error

Definition at line 4657 of file SCOLMaterial.cpp.

◆ SO3MaterialSetPassCullingEnable()

int SO3MaterialSetPassCullingEnable ( mmachine  m)

SO3MaterialSetPassCullingEnable : Sets pass culling state.

Prototype: fun [SO3_MATERIAL I I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
I: 1 to enable culling 0 to disable
Returns
I : 1 if success, NIL on error

Definition at line 5275 of file SCOLMaterial.cpp.

◆ SO3MaterialSetPassDepthCheckEnabled()

int SO3MaterialSetPassDepthCheckEnabled ( mmachine  m)

SO3MaterialSetPassDepthCheckEnabled : Set if the pass must check depth to validate fragments.

Prototype: fun [SO3_MATERIAL I I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
I: 1 to enable depth check, 0 to disable
Returns
I : 1 on success, NIL on error

Definition at line 4276 of file SCOLMaterial.cpp.

◆ SO3MaterialSetPassDepthFunction()

int SO3MaterialSetPassDepthFunction ( mmachine  m)

SO3MaterialSetPassDepthFunction : Sets the compare function to use to compare a fragment depth with depth buffer value.

Prototype: fun [SO3_MATERIAL I I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
I: Compare function to use.
Returns
I : 1 if success, NIL on error

Definition at line 4530 of file SCOLMaterial.cpp.

◆ SO3MaterialSetPassDepthWriteEnabled()

int SO3MaterialSetPassDepthWriteEnabled ( mmachine  m)

SO3MaterialSetPassDepthWriteEnabled : Set if the pass must write a validated fragment depth information to depth buffer.

Prototype: fun [SO3_MATERIAL I I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
I: 1 to enable depth write, 0 to disable
Returns
I : 1 on success, NIL on error

Definition at line 4403 of file SCOLMaterial.cpp.

◆ SO3MaterialSetPassLighting()

int SO3MaterialSetPassLighting ( mmachine  m)

SO3MaterialSetPassLighting : Sets pass lighting state.

Prototype: fun [SO3_MATERIAL I I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
I: 1 to enable lighting, 0 to disable
Returns
I : 1 if success, NIL on error

Definition at line 6040 of file SCOLMaterial.cpp.

◆ SO3MaterialSetPassPointSize()

int SO3MaterialSetPassPointSize ( mmachine  m)

SO3MaterialSetPassPointSize : Sets pass point size.

Prototype: fun [SO3_MATERIAL I I F] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
F: point size
Returns
I : 1 if success, NIL on error

Definition at line 5906 of file SCOLMaterial.cpp.

◆ SO3MaterialSetPassPolygonMode()

int SO3MaterialSetPassPolygonMode ( mmachine  m)

SO3MaterialSetPassPolygonMode : Sets pass polygon mode.

Prototype: fun [SO3_MATERIAL I I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
I: polygon mode (SO3_POLYGONMODE_POINTS, SO3_POLYGONMODE_WIREFRAME, SO3_POLYGONMODE_SOLID)
Returns
I : 1 if success, NIL on error

Definition at line 5773 of file SCOLMaterial.cpp.

◆ SO3MaterialSetPassSceneBlending()

int SO3MaterialSetPassSceneBlending ( mmachine  m)

SO3MaterialSetPassSceneBlending : Sets pass scene blending.

Prototype: fun [SO3_MATERIAL I I I I I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
I: Source blending factor
I: Destination blending factor
I: Source blending factor for alpha
I: Destination blending factor for alpha
Returns
I : 1 if success, NIL on error

Definition at line 4970 of file SCOLMaterial.cpp.

◆ SO3MaterialSetPassSceneBlendingOperation()

int SO3MaterialSetPassSceneBlendingOperation ( mmachine  m)

SO3MaterialSetPassSceneBlendingOperation : Sets pass scene blending operation.

Prototype: fun [SO3_MATERIAL I I I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
I: Scene blending operation
I: Scene blending operation for alpha
Returns
I : 1 if success, NIL on error

Definition at line 5195 of file SCOLMaterial.cpp.

◆ SO3MaterialSetPassUseVertexColor()

int SO3MaterialSetPassUseVertexColor ( mmachine  m)

SO3MaterialSetPassUseVertexColor : Sets pass vertex color state.

Prototype: fun [SO3_MATERIAL I I I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique of the material.
I: Pass of the material.
I: 1 to enable vertex color on shader 0 to disable
Returns
I : 1 if success, NIL on error

Definition at line 5403 of file SCOLMaterial.cpp.

◆ SO3MaterialSetReceiveShadows()

int SO3MaterialSetReceiveShadows ( mmachine  m)

SO3MaterialSetReceiveShadows : defines receive shadow state for a given material.

Prototype: fun [SO3_MATERIAL I] I

Parameters
SO3_MATERIAL: current material
I: receive shadow state (1 enable, 0 disable)
Returns
I : 1 if success, NIL otherwise

Definition at line 1715 of file SCOLMaterial.cpp.

◆ SO3MaterialSetSelfIllumination()

int SO3MaterialSetSelfIllumination ( mmachine  m)

SO3MaterialSetSelfIllumination : defines self illuminaton color of a material.

Prototype: fun [SO3_MATERIAL I] I

Parameters
SO3_MATERIAL: current material
I: given color (rgba)
Returns
I : 1 if success, NIL otherwise

Definition at line 455 of file SCOLMaterial.cpp.

◆ SO3MaterialSetSelfIlluminationByTechAndPass()

int SO3MaterialSetSelfIlluminationByTechAndPass ( mmachine  m)

SO3MaterialSetSelfIlluminationByTechAndPass : defines self illumination color by technique and pass of a material.

Prototype: fun [SO3_MATERIAL I I I] I

Parameters
SO3_MATERIAL: current material
I: index of technique
I: index for pass
I: given color (rgba)
Returns
I : 1 if success, NIL otherwise

Definition at line 500 of file SCOLMaterial.cpp.

◆ SO3MaterialSetShininess()

int SO3MaterialSetShininess ( mmachine  m)

SO3MaterialSetShininess : defines shininess value of a material.

Prototype: fun [SO3_MATERIAL F] I

Parameters
SO3_MATERIAL: current material
F: given value
Returns
I : 1 if success, NIL otherwise

Definition at line 685 of file SCOLMaterial.cpp.

◆ SO3MaterialSetShininessByTechAndPass()

int SO3MaterialSetShininessByTechAndPass ( mmachine  m)

SO3MaterialSetShininessByTechAndPass : defines shininess value by technique and pass of a material.

Prototype: fun [SO3_MATERIAL I I F] I

Parameters
SO3_MATERIAL: current material
I: index of technique
I: index for pass
F: shininess value
Returns
I : 1 if success, NIL otherwise

Definition at line 724 of file SCOLMaterial.cpp.

◆ SO3MaterialSetSpecular()

int SO3MaterialSetSpecular ( mmachine  m)

SO3MaterialSetSpecular : defines specular color of a material.

Prototype: fun [SO3_MATERIAL I] I

Parameters
SO3_MATERIAL: current material
I: given color (rgba)
Returns
I : 1 if success, NIL otherwise

Definition at line 570 of file SCOLMaterial.cpp.

◆ SO3MaterialSetSpecularByTechAndPass()

int SO3MaterialSetSpecularByTechAndPass ( mmachine  m)

SO3MaterialSetSpecularByTechAndPass : defines specular color by technique and pass of a material.

Prototype: fun [SO3_MATERIAL I I I] I

Parameters
SO3_MATERIAL: current material
I: index of technique
I: index for pass
I: given color (rgba)
Returns
I : 1 if success, NIL otherwise

Definition at line 614 of file SCOLMaterial.cpp.

◆ SO3MaterialSetTechniqueSchemeName()

int SO3MaterialSetTechniqueSchemeName ( mmachine  m)

SO3MaterialSetTechniqueSchemeName : Set a technique scheme name on a material.

Prototype: fun [SO3_MATERIAL I] I

Parameters
SO3_MATERIAL: Target material.
I: Technique index.
S: scheme name
Returns
I : 1 if success, NIL on error

Definition at line 5619 of file SCOLMaterial.cpp.

◆ SO3MaterialSetTexture()

int SO3MaterialSetTexture ( mmachine  m)

SO3MaterialSetTexture : Set a texture on a material.

Prototype: fun [SO3_MATERIAL SO3_TEXTURE I I I] I

Parameters
SO3_MATERIAL: current material
SO3_MATERIAL: current texture
I: given technique
I: given pass
I: index of the texture
Returns
I : 1 if success , NIL otherwise

Definition at line 1760 of file SCOLMaterial.cpp.

◆ SO3MaterialSetTextureBlendFactor()

int SO3MaterialSetTextureBlendFactor ( mmachine  m)

SO3MaterialSetTextureBlendFactor : Set the texture blend factor (used for reflection map)

Prototype: fun [SO3_MATERIAL I I I F] I

Parameters
SO3_MATERIAL:
I: Technique of the material.
I: Pass of the material.
I: Texture unit of the material.
F: Blend factor between 0.0 and 1.0
Returns
I : 1 if success , NIL otherwise

Definition at line 3251 of file SCOLMaterial.cpp.

◆ SO3MaterialSetTextureByType()

int SO3MaterialSetTextureByType ( mmachine  m)

SO3MaterialSetTextureByType : Set a texture on a material by type.

Prototype: fun [SO3_MATERIAL SO3_TEXTURE I I I] I

Parameters
SO3_MATERIAL: current material
SO3_MATERIAL: current texture
I: given technique
I: given pass
I: texture type (SO3_MAP_AMBIENT, SO3_MAP_DIFFUSE, SO3_MAP_SPECULAR, SO3_MAP_EMISSIVE, SO3_MAP_NORMAL, SO3_MAP_REFLECTION)
Returns
I : 1 if success , NIL otherwise

Definition at line 1940 of file SCOLMaterial.cpp.

◆ SO3MaterialSetTextureRotate()

int SO3MaterialSetTextureRotate ( mmachine  m)

SO3MaterialSetTextureRotate : Rotate the texture.

Prototype: fun [SO3_MATERIAL I I I F] I

Parameters
SO3_MATERIAL:
I: Technique of the material.
I: Pass of the material.
I: Texture unit of the material.
F: Rotation angle, in radians.
Returns
I : 1 if success , NIL otherwise

Definition at line 3120 of file SCOLMaterial.cpp.

◆ SO3MaterialSetTextureRotateAnimation()

int SO3MaterialSetTextureRotateAnimation ( mmachine  m)

SO3MaterialSetTextureRotateAnimation : Set a rotate animation on the texture.

Prototype: fun [SO3_MATERIAL I I I F] I

Parameters
SO3_MATERIAL:
I: Technique of the material.
I: Pass of the material.
I: Texture unit of the material.
F: The number of complete anticlockwise revolutions per second.
Returns
I : 1 if success , NIL otherwise

Definition at line 3385 of file SCOLMaterial.cpp.

◆ SO3MaterialSetTextureScrollAnimation()

int SO3MaterialSetTextureScrollAnimation ( mmachine  m)

SO3MaterialSetTextureScrollAnimation : Set a scroll animation on the texture.

Prototype: fun [SO3_MATERIAL I I I F F] I

Parameters
SO3_MATERIAL:
I: Technique of the material.
I: Pass of the material.
I: Texture unit of the material.
F: The number of horizontal loops per second (+v=moving right, -v = moving left)
F: The number of vertical loops per second (+v=moving up, -v= moving down)
Returns
I : 1 if success , NIL otherwise

Definition at line 3453 of file SCOLMaterial.cpp.

◆ SO3MaterialSetTextureUScale()

int SO3MaterialSetTextureUScale ( mmachine  m)

SO3MaterialSetTextureUScale : Sets the scale value of the texture, for the U value.

Prototype: fun [SO3_MATERIAL I I I F] I

Parameters
SO3_MATERIAL:
I: Technique of the material.
I: Pass of the material.
I: Texture unit of the material.
F: U scale value.
Returns
I : 1 if success , NIL otherwise

Definition at line 2856 of file SCOLMaterial.cpp.

◆ SO3MaterialSetTextureUScroll()

int SO3MaterialSetTextureUScroll ( mmachine  m)

SO3MaterialSetTextureUScroll : Sets the translation offset of the texture, ie scrolls the texture, for the U value.

Prototype: fun [SO3_MATERIAL I I I F] I

Parameters
SO3_MATERIAL:
I: Technique of the material.
I: Pass of the material.
I: Texture unit of the material.
F: U Scroll value.
Returns
I : 1 if success , NIL otherwise

Definition at line 2592 of file SCOLMaterial.cpp.

◆ SO3MaterialSetTextureVScale()

int SO3MaterialSetTextureVScale ( mmachine  m)

SO3MaterialSetTextureVScale : Sets the scale of the texture, for the V value.

Prototype: fun [SO3_MATERIAL I I I F] I

Parameters
SO3_MATERIAL:
I: Technique of the material.
I: Pass of the material.
I: Texture unit of the material.
F: V scale value.
Returns
I : 1 if success , NIL otherwise

Definition at line 2988 of file SCOLMaterial.cpp.

◆ SO3MaterialSetTextureVScroll()

int SO3MaterialSetTextureVScroll ( mmachine  m)

SO3MaterialSetTextureVScroll : Sets the translation offset of the texture, ie scrolls the texture, for the V value.

Prototype: fun [SO3_MATERIAL I I I F] I

Parameters
SO3_MATERIAL:
I: Technique of the material.
I: Pass of the material.
I: Texture unit of the material.
F: V Scroll value.
Returns
I : 1 if success , NIL otherwise

Definition at line 2724 of file SCOLMaterial.cpp.

◆ SO3MaterialTechniqueGetIndexByName()

int SO3MaterialTechniqueGetIndexByName ( mmachine  m)

SO3MaterialTechniqueGetIndexByName : return the index of a technique by name.

Prototype: fun [SO3_MATERIAL S] I

Parameters
SO3_MATERIAL: current material
S: Technique's name
Returns
I : Technique index if success, NIL otherwise

Definition at line 1386 of file SCOLMaterial.cpp.

◆ SO3MaterialTechniqueGetNameByIndex()

int SO3MaterialTechniqueGetNameByIndex ( mmachine  m)

SO3MaterialTechniqueGetNameByIndex : return the name of a technique.

Prototype: fun [SO3_MATERIAL I] S

Parameters
SO3_MATERIAL: current material
I: techniques index
Returns
S : Technique's name if success, NIL otherwise

Definition at line 1331 of file SCOLMaterial.cpp.

◆ SO3MaterialTextureUnitGetIndexByName()

int SO3MaterialTextureUnitGetIndexByName ( mmachine  m)

SO3MaterialTextureUnitGetIndexByName : return the index of a Texture unit by name.

Prototype: fun [SO3_MATERIAL I I S] I

Parameters
SO3_MATERIAL: current material
I: technique index
I: pass index
S: Texture unit name
Returns
I : Texture unit index if success, NIL otherwise

Definition at line 1640 of file SCOLMaterial.cpp.

◆ SO3MaterialTextureUnitGetIndexByType()

int SO3MaterialTextureUnitGetIndexByType ( mmachine  m)

SO3MaterialTextureUnitGetIndexByType : Get a texture from a material by it's type.

Prototype: fun [SO3_MATERIAL I I I] I

Parameters
SO3_MATERIAL: current material
I: given technique
I: given pass
I: texture type (SO3_MAP_AMBIENT, SO3_MAP_DIFFUSE, SO3_MAP_SPECULAR, SO3_MAP_EMISSIVE, SO3_MAP_NORMAL, SO3_MAP_REFLECTION)
Returns
I : Return the texture unit index on success , NIL otherwise

Definition at line 2100 of file SCOLMaterial.cpp.

◆ SO3MaterialTextureUnitGetNameByIndex()

int SO3MaterialTextureUnitGetNameByIndex ( mmachine  m)

SO3MaterialTextureUnitGetNameByIndex : return the name of a texture unit.

Prototype: fun [SO3_MATERIAL I I I] S

Parameters
SO3_MATERIAL: current material
I: technique index
I: pass index
I: Texture unit index
Returns
S : Texture unit name if success, NIL otherwise

Definition at line 1566 of file SCOLMaterial.cpp.

◆ SO3RenderToTextureCreate()

int SO3RenderToTextureCreate ( mmachine  m)

main include

SO3RenderToTextureCreate : Create a new render to texture

Prototype: fun [SO3_SCENE S SO3_OBJECT] SO3_OBJECT

Parameters
SO3_SCENE: current scene
S: given name for the new render to texture object
SO3_OBJECT: the camera that will be used to render from.
Returns
SO3_OBJECT : Created object if success , NIL otherwise

Definition at line 53 of file SCOLRenderToTexture.cpp.

◆ SO3RenderToTextureGetAutoUpdate()

int SO3RenderToTextureGetAutoUpdate ( mmachine  m)

SO3RenderToTextureGetAutoUpdate : Get the auto update state (is the render to texture object should be updated on every frame?) for the render to texture object.

Prototype: fun [SO3_OBJECT] I

Parameters
SO3_OBJECT: current node
Returns
I : Auto update state if success , NIL otherwise

Definition at line 294 of file SCOLRenderToTexture.cpp.

◆ SO3RenderToTextureGetEnable()

int SO3RenderToTextureGetEnable ( mmachine  m)

SO3RenderToTextureGetEnable : Get the enable state for the render to texture object.

Prototype: fun [SO3_OBJECT] I

Parameters
SO3_OBJECT: current node
Returns
I : Enable state if success , NIL otherwise

Definition at line 205 of file SCOLRenderToTexture.cpp.

◆ SO3RenderToTextureGetTextureSize()

int SO3RenderToTextureGetTextureSize ( mmachine  m)

SO3RenderToTextureGetTextureSize : Get the size of the target texture.

Prototype: fun [SO3_OBJECT] I

Parameters
SO3_OBJECT: current node
Returns
I : Enable state if success , NIL otherwise

Definition at line 384 of file SCOLRenderToTexture.cpp.

◆ SO3RenderToTextureSetAutoUpdate()

int SO3RenderToTextureSetAutoUpdate ( mmachine  m)

SO3RenderToTextureSetAutoUpdate : Set the AutoUpdate state (refresh every frame) for render to texture object.

Prototype: fun [SO3_OBJECT I] I

Parameters
SO3_OBJECT: current node
I: bool for enable state
Returns
I : 1 if success , NIL otherwise

Definition at line 338 of file SCOLRenderToTexture.cpp.

◆ SO3RenderToTextureSetEnable()

int SO3RenderToTextureSetEnable ( mmachine  m)

SO3RenderToTextureSetEnable : Set the Enable state for render to texture object.

Prototype: fun [SO3_OBJECT I] I

Parameters
SO3_OBJECT: current node
I: bool for enable state
Returns
I : 1 if success , NIL otherwise

Definition at line 249 of file SCOLRenderToTexture.cpp.

◆ SO3RenderToTextureSetTargetMaterial()

int SO3RenderToTextureSetTargetMaterial ( mmachine  m)

SO3RenderToTextureSetTargetMaterial : Set the material on wich the rendered texture will be setted. The render to texture object is automatically setted to enable when a valid material is passed.

Prototype: fun [SO3_OBJECT SO3_MATERIAL I I I] SO3_OBJECT

Parameters
SO3_OBJECT
SO3_MATERIAL:
I: Technique of the material where to render the render to texture object.
I: Pass of the material where to render the render to texture object.
I: Texture unit of the material where to render the render to texture object.
Returns
SO3_OBJECT : Created material if success , NIL otherwise

Definition at line 138 of file SCOLRenderToTexture.cpp.

◆ SO3RenderToTextureSetTextureSize()

int SO3RenderToTextureSetTextureSize ( mmachine  m)

SO3RenderToTextureSetTextureSize : Set the size of the target texture.

Prototype: fun [SO3_OBJECT I] I

Parameters
SO3_OBJECT: current node
I: bool for enable state
Returns
I : 1 if success , NIL otherwise

Definition at line 424 of file SCOLRenderToTexture.cpp.

◆ SO3RenderToTextureUpdate()

int SO3RenderToTextureUpdate ( mmachine  m)

SO3RenderToTextureUpdate : manually update a dynamic render to texture object (in case autoUpdate is set to false);.

Prototype: fun [SO3_OBJECT] I

Parameters
SO3_OBJECT: current node
Returns
I : 1 if success , NIL otherwise

Definition at line 473 of file SCOLRenderToTexture.cpp.

◆ SO3TextureBlit()

int SO3TextureBlit ( mmachine  m)

SO3TextureBlit : Blit a ObjBitmap on a texture.

Prototype: fun [SO3_TEXTURE ObjBitmap] I

Parameters
SO3_TEXTURE: current texture
ObjBitmap: ObjBitmap to blit
Returns
I : 1 if success , NIL otherwise

Definition at line 2446 of file SCOLMaterial.cpp.

◆ SO3TextureBlitAlpha()

int SO3TextureBlitAlpha ( mmachine  m)

SO3TextureBlitAlpha : Blit a AlphaBitmap on a texture.

Prototype: fun [SO3_TEXTURE AlphaBitmap] I

Parameters
SO3_TEXTURE: current texture
AlphaBitmap: AlphaBitmap to blit
Returns
I : 1 if success , NIL otherwise

Definition at line 2508 of file SCOLMaterial.cpp.

◆ SO3TextureCreate()

int SO3TextureCreate ( mmachine  m)

SO3TextureCreate : Create a texture unit.

Prototype: fun [SO3_SCENE S P S I I] SO3_TEXTURE

Parameters
SO3_SCENE: current scene
S: name of the new texture
P: file of the texture
S: the resource group of the texture
I: width of the image in pixels
I: height of the image in pixels
Returns
SO3_TEXTURE : The created texture if success , NIL otherwise

Definition at line 2246 of file SCOLMaterial.cpp.

◆ SO3TextureDestroy()

int SO3TextureDestroy ( mmachine  m)

SO3TextureDestroy : Destroy a texture unit.

Prototype: fun [SO3_TEXTURE] I

Parameters
SO3_TEXTURE: current texture
Returns
I : 1 if success , NIL otherwise

Definition at line 2356 of file SCOLMaterial.cpp.

◆ SO3TextureGetName()

int SO3TextureGetName ( mmachine  m)

SO3TextureGetName : Return the name of a texture.

Prototype: fun [SO3_TEXTURE] S

Parameters
SO3_TEXTURE: current texture
Returns
S : Texture's name if success , NIL otherwise

Definition at line 2381 of file SCOLMaterial.cpp.

◆ SO3TextureManagerGetMemoryUsage()

int SO3TextureManagerGetMemoryUsage ( mmachine  m)

SO3TextureManagerGetMemoryUsage : Return the memory usage of all textures in the scene.

Prototype: fun [SO3_SCENE] S

Parameters
SO3_SCENE: current scene
Returns
I : memory usage if success , NIL otherwise

Definition at line 2412 of file SCOLMaterial.cpp.