SO3Engine/SCOLPack/SCOLMaterial.cpp File Reference

#include "SO3SCOL.h"
#include "../SO3Material/SO3Material.h"
#include "../SO3Material/SO3Texture.h"
#include "../SCOLBasic/SO3Std.h"
#include "../SCOLBasic/SO3DataScol.h"
#include "../SO3Renderer/SO3Root.h"
#include "../SO3SceneGraph/SO3Scene.h"
#include "../SO3Utils/SO3ConversionTools.h"

Go to the source code of this file.

Defines

#define NBMATERIALPKG   50

Functions

int SO3MaterialCreate (mmachine m)
 main include
int SO3MaterialDestroy (mmachine m)
 SO3MaterialDestroy : Destroy a material.
int SO3MaterialGetName (mmachine m)
 SO3MaterialGetName : Return the material name.
int SO3MaterialSetAmbient (mmachine m)
 SO3MaterialSetAmbient : defines ambient color of a material.
int SO3MaterialSetAmbientByTechAndPass (mmachine m)
 SO3MaterialSetAmbientByTechAndPass : defines ambient color by technique and pass of a material.
int SO3MaterialSetDiffuse (mmachine m)
 SO3MaterialSetDiffuse : defines diffuse color of a material.
int SO3MaterialSetDiffuseByTechAndPass (mmachine m)
 SO3MaterialSetDiffuseByTechAndPass : defines diffuse color by technique and pass of a material.
int SO3MaterialGetReceiveShadows (mmachine m)
 SO3MaterialGetReceiveShadows : Get the receive shadow state for material.
int SO3MaterialSetSelfIllumination (mmachine m)
 SO3MaterialSetSelfIllumination : defines self illuminaton color of a material.
int SO3MaterialSetSelfIlluminationByTechAndPass (mmachine m)
 SO3MaterialSetSelfIlluminationByTechAndPass : defines self illumination color by technique and pass of a material.
int SO3MaterialSetSpecular (mmachine m)
 SO3MaterialSetSpecular : defines specular color of a material.
int SO3MaterialSetSpecularByTechAndPass (mmachine m)
 SO3MaterialSetSpecularByTechAndPass : defines specular color by technique and pass of a material.
int SO3MaterialSetShininess (mmachine m)
 SO3MaterialSetShininess : defines shininess value of a material.
int SO3MaterialSetShininessByTechAndPass (mmachine m)
 SO3MaterialSetShininessByTechAndPass : defines shininess value by technique and pass of a material.
int SO3MaterialGetDiffuseByTechAndPass (mmachine m)
 SO3MaterialGetDiffuseByTechAndPass : Get the diffuse color by Technique and Pass.
int SO3MaterialGetAmbientByTechAndPass (mmachine m)
 SO3MaterialGetAmbientByTechAndPass : Get the ambient color by Technique and Pass.
int SO3MaterialGetSpecularByTechAndPass (mmachine m)
 SO3MaterialGetSpecularByTechAndPass : Get the specular color by Technique and Pass.
int SO3MaterialGetShininessByTechAndPass (mmachine m)
 SO3MaterialGetShininessByTechAndPass : Get the Shininess value by Technique and Pass.
int SO3MaterialGetSelfIlluminationByTechAndPass (mmachine m)
 SO3MaterialGetSelfIlluminationByTechAndPass : Get the self illumination color by Technique and Pass.
int SO3MaterialIsLighting (mmachine m)
 SO3MaterialIsLighting : defines light state for a material.
int SO3MaterialNumberOfTechniques (mmachine m)
 SO3MaterialNumberOfTechniques : Get the number of techniques.
int SO3MaterialNumberOfPassesByTechnique (mmachine m)
 SO3MaterialNumberOfPassesByTechnique : Get the number of passes by technique.
int SO3MaterialNumberOfTexturesByTechniqueAndPass (mmachine m)
 SO3MaterialNumberOfTexturesByTechniqueAndPass : Get the number of textures by technique and pass.
int SO3MaterialTechniqueGetNameByIndex (mmachine m)
 SO3MaterialTechniqueGetNameByIndex : return the name of a technique.
int SO3MaterialTechniqueGetIndexByName (mmachine m)
 SO3MaterialTechniqueGetIndexByName : return the index of a technique by name.
int SO3MaterialPassGetNameByIndex (mmachine m)
 SO3MaterialPassGetNameByIndex : return the name of a pass.
int SO3MaterialPassGetIndexByName (mmachine m)
 SO3MaterialPassGetIndexByName : return the index of a pass by name.
int SO3MaterialTextureUnitGetNameByIndex (mmachine m)
 SO3MaterialTextureUnitGetNameByIndex : return the name of a texture unit.
int SO3MaterialTextureUnitGetIndexByName (mmachine m)
 SO3MaterialTextureUnitGetIndexByName : return the index of a Texture unit by name.
int SO3MaterialSetReceiveShadows (mmachine m)
 SO3MaterialSetReceiveShadows : defines receive shadow state for a given material.
int SO3MaterialSetTexture (mmachine m)
 SO3MaterialSetTexture : Set a texture on a material.
int SO3MaterialGetTexture (mmachine m)
 SO3MaterialGetTexture : Get a texture from a material.
int SO3TextureCreate (mmachine m)
 SO3TextureCreate : Create a texture unit.
int SO3TextureDestroy (mmachine m)
 SO3TextureDestroy : Destroy a texture unit.
int SO3TextureGetName (mmachine m)
 SO3TextureGetName : Return the name of a texture.
int SO3TextureManagerGetMemoryUsage (mmachine m)
 SO3TextureManagerGetMemoryUsage : Return the memory usage of all textures in the scene.
int SO3TextureBlit (mmachine m)
 SO3TextureBlit : Blit a ObjBitmap on a texture.
int SO3TextureBlitAlpha (mmachine m)
 SO3TextureBlitAlpha : Blit a AlphaBitmap on a texture.
int SO3MaterialSetTextureUScroll (mmachine m)
 SO3MaterialSetTextureUScroll : Sets the translation offset of the texture, ie scrolls the texture, for the U value.
int SO3MaterialGetTextureUScroll (mmachine m)
 SO3MaterialGetTextureUScroll : Gets the translation offset of the texture, ie scrolls the texture, for the U value.
int SO3MaterialSetTextureVScroll (mmachine m)
 SO3MaterialSetTextureVScroll : Sets the translation offset of the texture, ie scrolls the texture, for the V value.
int SO3MaterialGetTextureVScroll (mmachine m)
 SO3MaterialGetTextureVScroll : Gets the translation offset of the texture, ie scrolls the texture, for the V value.
int SO3MaterialSetTextureUScale (mmachine m)
 SO3MaterialSetTextureUScale : Sets the scale value of the texture, for the U value.
int SO3MaterialGetTextureUScale (mmachine m)
 SO3MaterialGetTextureUScale : Gets the scale of the texture, for the U value.
int SO3MaterialSetTextureVScale (mmachine m)
 SO3MaterialSetTextureVScale : Sets the scale of the texture, for the V value.
int SO3MaterialGetTextureVScale (mmachine m)
 SO3MaterialGetTextureVScale : Gets the scale of the texture, for the V value.
int SO3MaterialSetTextureRotate (mmachine m)
 SO3MaterialSetTextureRotate : Rotate the texture.
int SO3MaterialGetTextureRotate (mmachine m)
 SO3MaterialGetTextureRotate : Gets the rotation of the texture.
int SO3MaterialSetTextureRotateAnimation (mmachine m)
 SO3MaterialSetTextureRotateAnimation : Set a rotate animation on the texture.
int SO3MaterialSetTextureScrollAnimation (mmachine m)
 SO3MaterialSetTextureScrollAnimation : Set a scroll animation on the texture.
int SCOLloadMaterial (mmachine m, cbmachine w)
 Load the SO3Engine Viewport function.
int SCOLfreeMaterial ()
 free the SO3Engine Viewport function

Variables

char * MATERIALname [NBMATERIALPKG]
int(* MATERIALFunc [NBMATERIALPKG])(mmachine m)
int MATERIALnarg [NBMATERIALPKG]
char * MATERIALType [NBMATERIALPKG]

Define Documentation

#define NBMATERIALPKG   50

Nb of Scol functions or types

Definition at line 2751 of file SCOLMaterial.cpp.


Function Documentation

int SCOLfreeMaterial (  ) 

free the SO3Engine Viewport function

Parameters:
m : The VM

Definition at line 3001 of file SCOLMaterial.cpp.

int SCOLloadMaterial ( mmachine  m,
cbmachine  w 
)

Load the SO3Engine Viewport function.

Parameters:
m : The VM
w : The Callback VM

Definition at line 2991 of file SCOLMaterial.cpp.


Variable Documentation

int(* MATERIALFunc[NBMATERIALPKG])(mmachine m)

Nb of arguments of each scol function

Definition at line 2815 of file SCOLMaterial.cpp.

char* MATERIALname[NBMATERIALPKG]

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

Definition at line 2757 of file SCOLMaterial.cpp.

int MATERIALnarg[NBMATERIALPKG]

Nb of arguments of each scol function

Definition at line 2873 of file SCOLMaterial.cpp.

char* MATERIALType[NBMATERIALPKG]

Prototypes of the scol functions

Definition at line 2931 of file SCOLMaterial.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