#include <FCDMaterialInstance.h>
Inheritance diagram for FCDMaterialInstance:
Public Member Functions | |
FCDMaterialInstance (FCDocument *document, FCDGeometryInstance *parent) | |
virtual Type | GetType () const |
Retrieves the entity instance class type. | |
const fstring & | GetSemantic () const |
void | SetSemantic (const fchar *_semantic) |
void | SetSemantic (const fstring &_semantic) |
FCDMaterial * | GetMaterial () |
const FCDMaterial * | GetMaterial () const |
void | SetMaterial (FCDMaterial *_material) |
FCDMaterialInstanceBindList & | GetBindings () |
const FCDMaterialInstanceBindList & | GetBindings () const |
size_t | GetBindingCount () const |
FCDMaterialInstanceBind * | GetBinding (size_t index) |
const FCDMaterialInstanceBind * | GetBinding (size_t index) const |
FCDMaterialInstanceBind * | AddBinding () |
FCDMaterialInstanceBind * | AddBinding (const char *semantic, const char *target) |
FCDMaterialInstanceBind * | AddBinding (const string &semantic, const char *target) |
FCDMaterialInstanceBind * | AddBinding (const char *semantic, const string &target) |
FCDMaterialInstanceBind * | AddBinding (const string &semantic, const string &target) |
void | ReleaseBinding (size_t index) |
FCDMaterial * | FlattenMaterial () |
Creates a flattened version of the instantiated material. | |
virtual FUStatus | LoadFromXML (xmlNode *instanceNode) |
FUStatus | LoadFromId (const string &materialId) |
xmlNode * | WriteToXML (xmlNode *parentNode) const |
[INTERNAL] Writes out the entity instance to the given COLLADA XML tree node. |
A material instance is used to given polygon sets with a COLLADA material entity. It is also used to bind data sources with the inputs of an effect.
|
Creates a flattened version of the instantiated material. This is the prefered way to generate viewer materials from a COLLADA document.
|
|
Retrieves the entity instance class type. This is used to determine the up-class for the entity instance object.
Reimplemented from FCDEntityInstance. |
|
[INTERNAL] Writes out the entity instance to the given COLLADA XML tree node.
Reimplemented from FCDEntityInstance. |