#include <kfbximplementation.h>
It defines basic information about the shader and the binding table(KFbxBindingTable). For example, you can create a new KFbxImplementation like this:
KFbxImplementation* lImpl = KFbxImplementation::Create( &pMyScene, "MyImplementation" ); pMyObject.AddImplementation( lImpl ); pMyObject.SetDefaultImplementation( lImpl ); lImpl->RenderAPI = sDirectX; //sDirectX, sOpenGL, sMentalRay or sPreview lImpl->RenderAPIVersion = "9.0"; //API Version lImpl->Language = sHLSL; //sHLSL, sGLSL, sCGFX or sMentalRaySL lImpl->LanguageVersion = "1.0"; //Language Version
After the new KFbxImplementation is created, you can access KFbxBindingTable like this:
KFbxBindingTable* lTable = lImpl->GetTableByTargetName("root");
const KFbxImplementation* lImpl = GetImplementation( pMyObject, ImplementationCGFX ); // ImplementationPreview, ImplementationMentalRay, ImplementationCGFX, ImplementationHLSL, ImplementaitonOGS or ImplementationNone
Definition at line 79 of file kfbximplementation.h.
Target Name |
|
KString | RenderName |
Shader Language and API descriptions |
|
KFbxTypedProperty< fbxString > | Language |
Shader Language. |
|
KFbxTypedProperty< fbxString > | LanguageVersion |
Shader Language version. |
|
KFbxTypedProperty< fbxString > | RenderAPI |
Render API. |
|
KFbxTypedProperty< fbxString > | RenderAPIVersion |
Render API version. |
|
Binding description |
|
KFbxTypedProperty< fbxString > | RootBindingName |
Name of root binding table. |
|
KFbxProperty | GetConstants () const |
Property to store the shader
parameters(constants) values in this implementation. |
|
KFbxBindingTable * | AddNewTable (char const *pTargetName, char const *pTargetType) |
Add a new binding table to the table list.
|
|
KFbxBindingTable const * | GetRootTable () const |
Retrieves a handle on the root binding
table. |
|
KFbxBindingTable * | GetRootTable () |
Name of root binding table. |
|
int | GetTableCount () const |
Gets the number of binding tables. |
|
KFbxBindingTable const * | GetTable (int pIndex) const |
Retrieves a handle on the (pIndex)th binding
table. |
|
KFbxBindingTable * | GetTable (int pIndex) |
Retrieves a handle on the (pIndex)th binding
table. |
|
KFbxBindingTable const * | GetTableByTargetName (char const *pName) const |
Returns the binding table that has the given
name. |
|
KFbxBindingTable * | GetTableByTargetName (char const *pName) |
Returns the binding table that has the given
name. |
|
KFbxBindingTable const * | GetTableByTargetType (char const *pTargetName) const |
Returns the binding table for a given
target. |
|
KFbxBindingTable * | GetTableByTargetType (char const *pTargetName) |
Returns the binding table for a given
target. |
|
KFbxBindingOperator * | AddNewBindingOperator (char const *pTargetName, char const *pFunctionName) |
Add a new binding table to the table list.
|
|
int | GetBindingOperatorCount () const |
Gets the number of binding table operators.
|
|
KFbxBindingOperator const * | GetOperatorByTargetName (char const *pTargetName) const |
Returns the binding table that has the given
name. |
|
Static values |
|
static const char * | sLanguage |
Shader Language name. |
|
static const char * | sLanguageVersion |
Shader Language version. |
|
static const char * | sRenderAPI |
Shader render API. |
|
static const char * | sRenderAPIVersion |
Shader render API version. |
|
static const char * | sRootBindingName |
Name of root binding table. |
|
static const char * | sConstants |
Name of property to store the shader
parameters(constants) values in this implementation. |
|
static const char * | sDefaultType |
default value for implementation type
|
|
static const char * | sDefaultLanguage |
default value for shader language |
|
static const char * | sDefaultLanguageVersion |
default value for shader language version
|
|
static const char * | sDefaultRenderAPI |
default value for shader render API |
|
static const char * | sDefaultRenderAPIVersion |
default value for shader render API version
|
|
static const char * | sDefaultRootBindingName |
default value for root binding table name
|
KFbxProperty GetConstants | ( | ) | const |
Property to store the shader parameters(constants) values in this implementation.
KFbxBindingTable* AddNewTable | ( | char const * | pTargetName, | |
char const * | pTargetType | |||
) |
Add a new binding table to the table list.
pTargetName | The target name for the binding table | |
pTargetType | The target type for the binding table |
KFbxBindingTable const* GetRootTable | ( | ) | const |
Retrieves a handle on the root binding table.
KFbxBindingTable* GetRootTable | ( | ) |
Name of root binding table.
int GetTableCount | ( | ) | const |
Gets the number of binding tables.
KFbxBindingTable const* GetTable | ( | int | pIndex | ) | const |
Retrieves a handle on the (pIndex)th binding table.
pIndex | The index of the table to retrieve. Valid values are [ 0, GetTableCount() ) |
KFbxBindingTable* GetTable | ( | int | pIndex | ) |
Retrieves a handle on the (pIndex)th binding table.
pIndex | The index of the table to retrieve. Valid values are [ 0, GetTableCount() ) |
KFbxBindingTable const* GetTableByTargetName | ( | char const * | pName | ) | const |
Returns the binding table that has the given name.
pName | The name of the table to look for |
KFbxBindingTable* GetTableByTargetName | ( | char const * | pName | ) |
Returns the binding table that has the given name.
pName | The name of the table to look for |
KFbxBindingTable const* GetTableByTargetType | ( | char const * | pTargetName | ) | const |
Returns the binding table for a given target.
pTargetName | The name of the target to look for |
KFbxBindingTable* GetTableByTargetType | ( | char const * | pTargetName | ) |
Returns the binding table for a given target.
pTargetName | The name of the target to look for |
KFbxBindingOperator* AddNewBindingOperator | ( | char const * | pTargetName, | |
char const * | pFunctionName | |||
) |
Add a new binding table to the table list.
pTargetName | The target name for the binding table | |
pFunctionName | The target type for the binding table |
int GetBindingOperatorCount | ( | ) | const |
Gets the number of binding table operators.
KFbxBindingOperator const* GetOperatorByTargetName | ( | char const * | pTargetName | ) | const |
Returns the binding table that has the given name.
pTargetName | The name of the table to look for |
Referenced by GetBoundPropertyValue().
Definition at line 89 of file kfbximplementation.h.
Shader Language.
Definition at line 100 of file kfbximplementation.h.
Shader Language version.
Definition at line 103 of file kfbximplementation.h.
Render API.
Definition at line 108 of file kfbximplementation.h.
Render API version.
Definition at line 111 of file kfbximplementation.h.
Name of root binding table.
Definition at line 121 of file kfbximplementation.h.
const char* sLanguage
[static] |
const char* sLanguageVersion
[static] |
Shader Language version.
Definition at line 213 of file kfbximplementation.h.
const char* sRenderAPI
[static] |
const char* sRenderAPIVersion
[static] |
Shader render API version.
Definition at line 223 of file kfbximplementation.h.
const char* sRootBindingName
[static] |
Name of root binding table.
Definition at line 228 of file kfbximplementation.h.
const char* sConstants
[static] |
Name of property to store the shader parameters(constants) values in this implementation.
Definition at line 233 of file kfbximplementation.h.
const char* sDefaultType
[static] |
default value for implementation type
Definition at line 236 of file kfbximplementation.h.
const char* sDefaultLanguage
[static] |
default value for shader language
Definition at line 239 of file kfbximplementation.h.
const char* sDefaultLanguageVersion
[static] |
default value for shader language version
Definition at line 242 of file kfbximplementation.h.
const char* sDefaultRenderAPI
[static] |
default value for shader render API
Definition at line 245 of file kfbximplementation.h.
const char* sDefaultRenderAPIVersion
[static] |
default value for shader render API version
Definition at line 248 of file kfbximplementation.h.
const char* sDefaultRootBindingName
[static] |
default value for root binding table name
Definition at line 251 of file kfbximplementation.h.