#include <Material.h>
Inheritance diagram for CSLMaterial:

Defines a legacy SI_Material (see the SI_Material template reference).
| enum EShadingModel |
| CSLMaterial | ( | CSLScene * | in_pScene, | |
| CSLModel * | in_pModel, | |||
| CdotXSITemplate * | in_pTemplate | |||
| ) |
Constructor
| [in] | in_pScene | Pointer to the scene containing the Material |
| [in] | in_pModel | Pointer to the model containing the Material |
| [in] | in_pTemplate | Pointer to the CdotXSITemplate containing the Material |
| virtual ~CSLMaterial | ( | ) | [virtual] |
Destructor
| CSIBCColorf GetAmbientColor | ( | ) |
Returns the ambient color of the material.
| SI_Void SetAmbientColor | ( | CSIBCColorf & | in_rColor | ) |
Changes the ambient color of the material.
| [in] | in_rColor | New ambient color. |
| CSIBCColorf GetDiffuseColor | ( | ) |
Returns the diffuse color of the material.
| SI_Void SetDiffuseColor | ( | CSIBCColorf & | in_rColor | ) |
Changes the diffuset color of the material.
| [in] | in_rColor | New diffuse color. |
| CSIBCColorf GetEmissiveColor | ( | ) |
Returns the emissive color of the material.
| SI_Void SetEmissiveColor | ( | CSIBCColorf & | in_rColor | ) |
Changes the emissive color of the material.
| [in] | in_rColor | New emissive color. |
| EShadingModel GetShadingModel | ( | ) |
Returns the shading model of the material.
| SI_Void SetShadingModel | ( | EShadingModel | in_Value | ) |
Changes the shading model of the material.
| [in] | in_Value | New shading model. |
| CSIBCColorf GetSpecularColor | ( | ) |
Returns the specular color of the material.
| SI_Void SetSpecularColor | ( | CSIBCColorf & | in_rColor | ) |
Changes the specular color of the material.
| [in] | in_rColor | New specular color |
| SI_Float GetSpecularDecay | ( | ) |
Returns the specular decay of the material.
| SI_Void SetSpecularDecay | ( | SI_Float | in_fValue | ) |
Changes the specular decay of the material.
| [in] | in_fValue | New Specular decay. |
| CSLTexture2D* Texture2D | ( | ) |
Returns the 2D texture of the material.
| CSLTexture2D* CreateTexture2D | ( | ) |
Create a new texture 2D for the material.
| SI_Error DestroyTexture2D | ( | ) |
Destroys the texture 2D of the material.
| virtual SI_Error Synchronize | ( | ) | [virtual] |
Synchronizes to ensure that the animated parameter is up to date.
Reimplemented from CSLBaseMaterial.
| virtual ETemplateType Type | ( | ) | [virtual] |
Returns the type of this template
| CSLTemplate::SI_MATERIAL | Template type |
Implements CSLTemplate.
| virtual CSLAnimatableType* ParameterFromName | ( | SI_Char * | in_szName | ) | [virtual] |
Returns a proxy to the specified parameter.
| [in] | in_szName | Name of the parameter |
Reimplemented from CSLTemplate.
| virtual CSLAnimatableType* ParameterFromType | ( | EFCurveType | in_Type, | |
| SI_Char * | in_szParameterName | |||
| ) | [virtual] |
Returns a proxy to the specified parameter.
| [in] | in_Type | Type of parameter |
| [in] | in_szParameterName | Name of the parameter if the type is SI_PARAMETER |
Reimplemented from CSLTemplate.