#include <FCDMaterialInstance.h>
Inheritance diagram for FCDMaterialInstance:
Public Member Functions | |
FCDMaterialInstance (FCDocument *document, FCDEntityInstance *parent) | |
Constructor. | |
virtual | ~FCDMaterialInstance () |
Destructor. | |
DEPRECATED (3.05A, HasType(FCDMaterialInstance::GetClassType())) virtual Type GetType() const | |
Retrieves the type of entity instance. | |
FCDEntityInstance * | GetParent () |
Retrieves the parent instance. | |
const FCDEntityInstance * | GetParent () const |
See above. | |
const fstring & | GetSemantic () const |
Retrieves the symbolic name used to link the polygons sets with the material of this instance. | |
void | SetSemantic (const fchar *_semantic) |
Sets the symbolic name used to link polygons sets with this instance. | |
void | SetSemantic (const fstring &_semantic) |
See above. | |
FCDMaterial * | GetMaterial () |
Retrieves the material entity used by this instance. | |
const FCDMaterial * | GetMaterial () const |
See above. | |
void | SetMaterial (FCDMaterial *_material) |
Sets the material entity used by this instance. | |
DEPRECATED (3.05A, GetBindingCount and GetBinding(index)) inline void GetBindings() const | |
Retrieves the parameter bindings of the instance. | |
const FCDMaterialInstanceBind * | FindBinding (const char *semantic) |
Retrieves a given binding. | |
size_t | GetBindingCount () const |
Retrieves the number of parameter bindings for this instance. | |
FCDMaterialInstanceBind * | GetBinding (size_t index) |
Retrieves a parameter binding. | |
const FCDMaterialInstanceBind * | GetBinding (size_t index) const |
See above. | |
FCDObject * | GetGeometryTarget () |
Retrieves the geometry target that this instance affects. | |
FCDMaterialInstanceBind * | AddBinding () |
Adds a new parameter binding. | |
FCDMaterialInstanceBind * | AddBinding (const char *semantic, const char *target) |
Adds a new parameter binding. | |
void | RemoveBinding (size_t index) |
Removes a parameter binding. | |
DEPRECATED (3.05A, GetVertexInputBindingCount and GetVertexInputBinding(index)) inline void GetVertexInputBindings() | |
Retrieves the vertex input bindings. | |
size_t | GetVertexInputBindingCount () const |
Retrieves the number of vertex input bindings. | |
FCDMaterialInstanceBindVertexInput * | GetVertexInputBinding (size_t index) |
Retrieves a vertex input binding. | |
const FCDMaterialInstanceBindVertexInput * | GetVertexInputBinding (size_t index) const |
See above. | |
FCDMaterialInstanceBindVertexInput * | FindVertexInputBinding (const char *semantic) |
Retrieves a given vertex input binding. | |
const FCDMaterialInstanceBindVertexInput * | FindVertexInputBinding (const char *semantic) const |
See above. | |
FCDMaterialInstanceBindVertexInput * | AddVertexInputBinding () |
Adds a new vertex input binding. | |
FCDMaterialInstanceBindVertexInput * | AddVertexInputBinding (const char *semantic, FUDaeGeometryInput::Semantic inputSemantic, int32 inputSet) |
Adds a new vertex input binding. | |
DEPRECATED (3.05A, not recommended) FCDMaterial *FlattenMaterial() | |
Creates a flattened version of the instantiated material. | |
virtual FCDEntityInstance * | Clone (FCDEntityInstance *clone=NULL) const |
Clones the material instance. |
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.
|
Constructor.
|
|
Adds a new parameter binding.
|
|
Adds a new parameter binding.
|
|
Adds a new vertex input binding. Together, the data source type and set should always define a unique data source.
|
|
Adds a new vertex input binding.
|
|
Clones the material instance.
Reimplemented from FCDEntityInstance. |
|
Creates a flattened version of the instantiated material. This is the preferred way to generate viewer materials from a COLLADA document.
|
|
Retrieves the vertex input bindings.
|
|
Retrieves the parameter bindings of the instance. Each material instance may re-define any number of material or effect parameters.
|
|
Retrieves the type of entity instance.
|
|
Retrieves a given binding.
|
|
Retrieves a given vertex input binding. This is useful when trying to match textures with the texture coordinate sets.
|
|
Retrieves a parameter binding.
|
|
Retrieves the number of parameter bindings for this instance.
|
|
Retrieves the geometry target that this instance affects. Note that this function uses the parent geometry instance and searches for the polygon set. Therefore, the application should buffer the retrieved pointer. |
|
Retrieves the material entity used by this instance.
|
|
Retrieves the parent instance.
Reimplemented from FCDEntityInstance. |
|
Retrieves the symbolic name used to link the polygons sets with the material of this instance.
|
|
Retrieves a vertex input binding.
|
|
Retrieves the number of vertex input bindings.
|
|
Removes a parameter binding.
|
|
Sets the material entity used by this instance.
|
|
Sets the symbolic name used to link polygons sets with this instance. This name should always match against the symbolic name assigned to a polygons set.
|