#include <FCDEffectProfile.h>
Inheritance diagram for FCDEffectProfile:
Public Member Functions | |
FCDEffectProfile (FCDocument *document, FCDEffect *parent) | |
Constructor: do not use directly. | |
virtual | ~FCDEffectProfile () |
Destructor: do not use directly. | |
virtual FUDaeProfileType::Type | GetType () const =0 |
Retrieves the profile type for this effect. | |
FCDEffect * | GetParent () |
Retrieves the parent effect. | |
const FCDEffect * | GetParent () const |
See above. | |
const string & | GetDaeId () const |
[INTERNAL] Retrieves the COLLADA id of the parent effect. | |
virtual FCDEffectParameter * | FindParameterBySemantic (const string &semantic)=0 |
Retrieves an effect parameter. | |
virtual void | FindParametersBySemantic (const string &semantic, FCDEffectParameterList ¶meters)=0 |
Retrieves a subset of the effect parameter list. | |
virtual void | FindParametersByReference (const string &reference, FCDEffectParameterList ¶meters)=0 |
Retrieves a subset of the effect parameter list. | |
virtual FCDEffectProfile * | Clone (FCDEffect *newParent)=0 |
[INTERNAL] Clones the profile effect and its parameters. | |
virtual void | Flatten ()=0 |
[INTERNAL] Flattens this effect profile, 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 *profileNode)=0 |
[INTERNAL] Reads in the effect profile from a given COLLADA XML tree node. | |
virtual xmlNode * | WriteToXML (xmlNode *parentNode) const =0 |
[INTERNAL] Writes out the effect profile to the given COLLADA XML tree node. |
COLLADA has multiple effect profiles: CG, HLSL, GLSL, GLES and the COMMON profile. For each profile, there is a class which implements this abstract class. This abstract class solely holds the parent effect and allows access to the profile type.
|
Constructor: do not use directly. Instead, use the FCDEffect::AddProfile function.
|
|
Destructor: do not use directly. Instead, use the FCDEffect::ReleaseProfile function. |
|
[INTERNAL] Clones the profile effect and its parameters.
Implemented in FCDEffectProfileFX, and FCDEffectStandard. |
|
Retrieves an effect parameter. Looks for the effect parameter with the correct semantic, in order to bind or override its value. This function searches through the effect profile and the level of abstractions below.
Implemented in FCDEffectProfileFX, and FCDEffectStandard. |
|
Retrieves a subset of the effect parameter list. Look for effect parameters with the correct reference. This function searches through the effect profile and the level of abstractions below.
Implemented in FCDEffectProfileFX, and FCDEffectStandard. |
|
Retrieves a subset of the effect parameter list. Look for effect parameters with the correct semantic. This function searches through the effect profile and the level of abstractions below.
Implemented in FCDEffectProfileFX, and FCDEffectStandard. |
|
[INTERNAL] Flattens this effect profile, 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. Implemented in FCDEffectProfileFX, and FCDEffectStandard. |
|
[INTERNAL] Retrieves the COLLADA id of the parent effect. This function is useful when reporting errors and warnings.
|
|
Retrieves the parent effect. This is the effect which contains this profile.
|
|
Retrieves the profile type for this effect. This function allows you to up-cast the pointer safely to a more specific effect profile class.
Implemented in FCDEffectProfileFX, and FCDEffectStandard. |
|
[INTERNAL] Reads in the effect profile from a given COLLADA XML tree node.
Implemented in FCDEffectProfileFX, and FCDEffectStandard. |
|
[INTERNAL] Writes out the effect profile to the given COLLADA XML tree node.
Implemented in FCDEffectProfileFX, and FCDEffectStandard. |