Scene Material interface.
Public Member Functions | |
| virtual iSceneMaterial * | Clone () const =0 |
| Create a copy of the material. More... | |
| virtual void | SetName (const achar *aaszName)=0 |
| Set material's name. {Property}. More... | |
| virtual const achar * | GetName () const =0 |
| Get material's name. {Property}. More... | |
| virtual tSceneTextureCVec * | GetTextures () const =0 |
| Get the textures in the material. {Property}. More... | |
| virtual iSceneTexture * | GetTextureFromType (const achar *aaszType) const =0 |
| Get the texture of the specified type. {Property}. More... | |
| virtual void | SetDiffuseColor (const sColor4f &aColor)=0 |
| Set material's diffuse color. {Property}. More... | |
| virtual const sColor4f & | GetDiffuseColor () const =0 |
| Get mateiral's diffuse color. {Property}. More... | |
| virtual void | SetSpecularColor (const sColor3f &aColor)=0 |
| Set material's specular color. {Property}. More... | |
| virtual const sColor3f & | GetSpecularColor () const =0 |
| Get mateiral's specular color. {Property}. More... | |
| virtual void | SetEmissiveColor (const sColor3f &aColor)=0 |
| Set material's emissive color. {Property}. More... | |
| virtual const sColor3f & | GetEmissiveColor () const =0 |
| Get mateiral's emissive color. {Property}. More... | |
| virtual void | SetSpecularPower (tF32 afPower)=0 |
| Set material's specular power. {Property}. More... | |
| virtual tF32 | GetSpecularPower () const =0 |
| Set material's specular power. {Property}. More... | |
| virtual void | ResetMaterial ()=0 |
| Reset the graphics material if cached. More... | |
| virtual iMaterial * | LoadMaterial (iGraphics *apGraphics, const achar *aaszBasePath, tSceneMaterialCVec *apvMaterials, tBool abLoadTextures, tU32 anIndex)=0 |
| Load a graphics material. More... | |
Public Member Functions inherited from iSerializable | |
| virtual const achar * | GetSerializeObjectTypeID () const =0 |
| Get the object type ID. More... | |
| virtual tSize | Serialize (iFile *apFile, eSerializeMode aMode)=0 |
| Serialize the object. More... | |
Public Member Functions inherited from iUnknown | |
| virtual tBool | IsOK () const =0 |
| Check if the object is valid. More... | |
| virtual tI32 | AddRef ()=0 |
| Signal that one more reference of the object has been created. More... | |
| virtual tI32 | Release ()=0 |
| Release a reference of the object. More... | |
| virtual void | DeleteThis ()=0 |
| Bypass any reference counting and delete this object. More... | |
| virtual void | Invalidate ()=0 |
| Invalidate the object. More... | |
| virtual iUnknown * | QueryInterface (const tUUID &aIID)=0 |
| Query an interface. More... | |
| virtual void | ListInterfaces (iMutableCollection *apLst, tU32 anFlags) const =0 |
| Fill a UUID list containing the UUIDs of the implemented interfaces. More... | |
| virtual tI32 | SetNumRefs (tI32 anNumRefs)=0 |
| Set the reference counter directly. More... | |
| virtual tI32 | GetNumRefs () const =0 |
| Get the number of references to this object. More... | |
|
pure virtual |
Create a copy of the material.
|
pure virtual |
Get material's name. {Property}.
|
pure virtual |
Get the textures in the material. {Property}.
|
pure virtual |
Get the texture of the specified type. {Property}.
Set material's diffuse color. {Property}.
|
pure virtual |
Get mateiral's diffuse color. {Property}.
Set material's specular color. {Property}.
|
pure virtual |
Get mateiral's specular color. {Property}.
Set material's emissive color. {Property}.
|
pure virtual |
Get mateiral's emissive color. {Property}.
Set material's specular power. {Property}.
|
pure virtual |
Set material's specular power. {Property}.
|
pure virtual |
Reset the graphics material if cached.
1.8.7