#include <FCDMaterial.h>
Inheritance diagram for FCDMaterial:
Public Member Functions | |
FCDMaterial (FCDocument *document) | |
Constructor: do not use directly. | |
virtual | ~FCDMaterial () |
Destructor: do not use directly. | |
virtual Type | GetType () const |
Retrieves the entity type for this class. | |
FCDEffect * | GetEffect () |
Retrieves the effect instantiated for this material. | |
const FCDEffect * | GetEffect () const |
See above. | |
void | SetEffect (FCDEffect *_effect) |
Sets the effect instantiated for this material. | |
FCDMaterialTechniqueHintList & | GetTechniqueHints () |
Retrieves the list of the material platform-technique hints. | |
const FCDMaterialTechniqueHintList & | GetTechniqueHints () const |
See above. | |
FCDEffectParameterList * | GetParameters () |
Retrieves the list of effect parameter overrides. | |
const FCDEffectParameterList * | GetParameters () const |
See above. | |
FCDEffectParameter * | FindParameterBySemantic (const string &semantic) |
Retrieves an effect parameter override. | |
void | FindParametersBySemantic (const string &semantic, FCDEffectParameterList ¶meters) |
Retrieves a subset of the effect parameter override list. | |
void | FindParametersByReference (const string &reference, FCDEffectParameterList ¶meters) |
Retrieves a subset of the effect parameter override list. | |
FCDMaterial * | Clone () |
[INTERNAL] Clones the material object. | |
void | Flatten () |
[INTERNAL] Flattens the material, pushing all the effect parameter overrides into the effect parameter generators and moving all the parameters to the effect technique level of abstraction. | |
virtual FUStatus | LoadFromXML (xmlNode *materialNode) |
[INTERNAL] Reads in the <material> element from a given COLLADA XML tree node. | |
virtual xmlNode * | WriteToXML (xmlNode *parentNode) const |
[INTERNAL] Writes out the <material> element to the given COLLADA XML tree node. |
A COLLADA material is one of many abstraction level that defines how to render mesh polygon sets. It instantiates an effect and may overrides some of the effect parameters with its own values.
Unless you care about the construction history or memory, you should probably use the FCDMaterialInstance::FlattenMaterial function.
|
Constructor: do not use directly. Instead, use the FCDMaterialLibrary::AddMaterial function.
|
|
Destructor: do not use directly. The material library will release all the materials when it is released. If you want to remove a material from the material library: use the FCDMaterialLibrary::RemoveMaterial function. |
|
[INTERNAL] Clones the material object. Everything is cloned, including the effect parameter. You will need release the cloned material directly, by deleting the pointer.
|
|
Retrieves an effect parameter override. Looks for the effect parameter override with the correct semantic, in order to bind or set its value. This function searches through the material and the level of abstractions below.
|
|
Retrieves a subset of the effect parameter override list. Look for the effect parameter overrides with the correct reference. This function searches through the material and the level of abstractions below.
|
|
Retrieves a subset of the effect parameter override list. Look for the effect parameter overrides with the correct semantic. This function searches through the material and the level of abstractions below.
|
|
[INTERNAL] Flattens the material, pushing all the effect parameter overrides into the effect parameter generators and moving all the parameters to the effect technique level of abstraction. To flatten the material, use the FCDMaterialInstance::FlattenMaterial function. |
|
Retrieves the effect instantiated for this material. The parameters of the effect may be overwritten by this material. You should either flatten the material using the FlattenMaterial function or verify the parameter values manually using the parameter list accessors.
|
|
Retrieves the list of effect parameter overrides.
|
|
Retrieves the list of the material platform-technique hints.
|
|
Retrieves the entity type for this class. This function is part of the FCDEntity class interface.
Reimplemented from FCDEntity. |
|
[INTERNAL] Reads in the <material> element from a given COLLADA XML tree node.
Reimplemented from FCDEntity. |
|
Sets the effect instantiated for this material.
|
|
[INTERNAL] Writes out the <material> element to the given COLLADA XML tree node.
Reimplemented from FCDEntity. |