#include <FCDEffectCode.h>
Inheritance diagram for FCDEffectCode:
Public Types | |
enum | Type { INCLUDE, CODE } |
The list of support code inclusion types. More... | |
Public Member Functions | |
FCDEffectCode (FCDocument *document) | |
Constructor: do not use directly. | |
~FCDEffectCode () | |
Destructor: do not use directly. | |
Type | GetType () const |
Retrieves the form of the code inclusion. | |
void | SetType (Type _type) |
Sets the form of the code inclusion. | |
const string & | GetSid () const |
Retrieves the sub-id of the code inclusion. | |
void | SetSid (const string &_sid) |
Sets the sub-id of the code inclusion. | |
const fstring & | GetCode () const |
Retrieves the inlined code. | |
void | SetCode (const fstring &_code) |
Sets the inlined code. | |
const fstring & | GetFilename () const |
Retrieves the filename of the code file to open. | |
void | SetFilename (const fstring &_filename) |
Sets the filename of the code file. | |
FCDEffectCode * | Clone () const |
[INTERNAL] Clones the code inclusion. | |
FUStatus | LoadFromXML (xmlNode *codeNode) |
[INTERNAL] Reads in the code inclusion from a given COLLADA XML tree node. | |
xmlNode * | WriteToXML (xmlNode *parentNode) const |
[INTERNAL] Writes out the code inclusion to the given COLLADA XML tree node. |
Code inclusions come in two forms: file includes and inline code. For file includes, you will want to grab the filename of the file using the GetFilename function and for inline code, you can get the code directly through the GetCode function.
Code inclusions are referenced through sub-ids by the effect pass shaders. Regardless of the extension of the filename of file includes, the code inclusions' language is solely determined by the effect profile they belong to.
|
The list of support code inclusion types.
|
|
Constructor: do not use directly. Instead, use the FCDEffectProfile::AddCode or the FCDEffectTechnique::AddCode functions.
|
|
Destructor: do not use directly. Instead, use the FCDEffectProfile::ReleaseCode or the FCDEffectTechnique::ReleaseCode functions. |
|
[INTERNAL] Clones the code inclusion.
|
|
Retrieves the inlined code. First verify that this code inclusion contains inlined code using the GetType function.
|
|
Retrieves the filename of the code file to open. First verify that this code inclusion contains a filename using the GetType function.
|
|
Retrieves the sub-id of the code inclusion. Used to match the code inclusion within the effect pass shaders.
|
|
Retrieves the form of the code inclusion.
|
|
[INTERNAL] Reads in the code inclusion from a given COLLADA XML tree node. Code inclusions cover the <code> element and the <include> element.
|
|
Sets the inlined code. As a side-effect, calling this function forces the type of the code inclusion.
|
|
Sets the filename of the code file. As a side-effect, calling this function forces the type of the code inclusion.
|
|
Sets the sub-id of the code inclusion. This value may change on export, as the sub-id must be unique within its scope.
|
|
Sets the form of the code inclusion. Changing the form of the code inclusion will not remove the inline code or the filename.
|
|
[INTERNAL] Writes out the code inclusion to the given COLLADA XML tree node.
|