TalanSoft Toolkits  201707
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | List of all members
iSceneMaterial Struct Referenceabstract
Inheritance diagram for iSceneMaterial:
iSerializable iUnknown

Detailed Description

Scene Material interface.

Public Member Functions

virtual iSceneMaterialClone () const =0
 Create a copy of the material. More...
 
virtual void SetName (const achar *aaszName)=0
 Set material's name. {Property}. More...
 
virtual const acharGetName () const =0
 Get material's name. {Property}. More...
 
virtual tSceneTextureCVecGetTextures () const =0
 Get the textures in the material. {Property}. More...
 
virtual iSceneTextureGetTextureFromType (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 sColor4fGetDiffuseColor () 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 sColor3fGetSpecularColor () 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 sColor3fGetEmissiveColor () 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 iMaterialLoadMaterial (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 acharGetSerializeObjectTypeID () 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 iUnknownQueryInterface (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...
 

Member Function Documentation

virtual iSceneMaterial* Clone ( ) const
pure virtual

Create a copy of the material.

virtual void SetName ( const achar aaszName)
pure virtual

Set material's name. {Property}.

virtual const achar* GetName ( ) const
pure virtual

Get material's name. {Property}.

virtual tSceneTextureCVec* GetTextures ( ) const
pure virtual

Get the textures in the material. {Property}.

virtual iSceneTexture* GetTextureFromType ( const achar aaszType) const
pure virtual

Get the texture of the specified type. {Property}.

virtual void SetDiffuseColor ( const sColor4f aColor)
pure virtual

Set material's diffuse color. {Property}.

virtual const sColor4f& GetDiffuseColor ( ) const
pure virtual

Get mateiral's diffuse color. {Property}.

virtual void SetSpecularColor ( const sColor3f aColor)
pure virtual

Set material's specular color. {Property}.

virtual const sColor3f& GetSpecularColor ( ) const
pure virtual

Get mateiral's specular color. {Property}.

virtual void SetEmissiveColor ( const sColor3f aColor)
pure virtual

Set material's emissive color. {Property}.

virtual const sColor3f& GetEmissiveColor ( ) const
pure virtual

Get mateiral's emissive color. {Property}.

virtual void SetSpecularPower ( tF32  afPower)
pure virtual

Set material's specular power. {Property}.

virtual tF32 GetSpecularPower ( ) const
pure virtual

Set material's specular power. {Property}.

virtual void ResetMaterial ( )
pure virtual

Reset the graphics material if cached.

virtual iMaterial* LoadMaterial ( iGraphics apGraphics,
const achar aaszBasePath,
tSceneMaterialCVec apvMaterials,
tBool  abLoadTextures,
tU32  anIndex 
)
pure virtual

Load a graphics material.