This reference page is linked to from the following overview topics: Using hardware shaders to create materials.
This object represents the shading node implementation.
It defines basic information about the shader and the binding table(FbxBindingTable). For example, you can create a new FbxImplementation like this:
FbxImplementation* lImpl = FbxImplementation::Create( &pMyScene, "MyImplementation" ); pMyObject.AddImplementation( lImpl ); pMyObject.SetDefaultImplementation( lImpl ); lImpl->RenderAPI = FBXSDK_RENDERING_API_DIRECTX; //FBXSDK_RENDERING_API_DIRECTX, FBXSDK_RENDERING_API_OPENGL, FBXSDK_RENDERING_API_MENTALRAY or FBXSDK_RENDERING_API_PREVIEW lImpl->RenderAPIVersion = "9.0"; //API Version lImpl->Language = FBXSDK_SHADING_LANGUAGE_HLSL; //FBXSDK_SHADING_LANGUAGE_HLSL, FBXSDK_SHADING_LANGUAGE_GLSL, FBXSDK_SHADING_LANGUAGE_CGFX or FBXSDK_SHADING_LANGUAGE_MRSL lImpl->LanguageVersion = "1.0"; //Language Version
After the new FbxImplementation is created, you can access FbxBindingTable like this:
FbxBindingTable* lTable = lImpl->GetTableByTargetName("root");
Also, you can access the exist FbxImplementation in FbxObject by this:
const FbxImplementation* lImpl = GetImplementation( pMyObject, FBXSDK_IMPLEMENTATION_CGFX ); // FBXSDK_IMPLEMENTATION_PREVIEW, FBXSDK_IMPLEMENTATION_MENTALRAY, FBXSDK_IMPLEMENTATION_CGFX, FBXSDK_IMPLEMENTATION_HLSL, FBXSDK_IMPLEMENTATION_OGS or FBXSDK_IMPLEMENTATION_NONE
Definition at line 53 of file fbximplementation.h.
#include <fbximplementation.h>

Protected Member Functions |
|
| FbxImplementation (FbxManager &pManager, char const *pName) | |
| virtual bool | ConstructProperties (bool pForceSet) |
Target Name. |
|
| FbxString | RenderName |
Shader Language and API descriptions. |
|
| FbxPropertyT< FbxString > | Language |
| Shader Language. |
|
| FbxPropertyT< FbxString > | LanguageVersion |
| Shader Language version. |
|
| FbxPropertyT< FbxString > | RenderAPI |
| Render API. |
|
| FbxPropertyT< FbxString > | RenderAPIVersion |
| Render API version. |
|
Binding description |
|
| FbxPropertyT< FbxString > | RootBindingName |
| Name of root binding table. |
|
| FbxProperty | GetConstants () const |
| Property to store the shader
parameters(constants) values in this implementation. |
|
| FbxBindingTable * | AddNewTable (char const *pTargetName, char const *pTargetType) |
| Add a new binding table to the table list.
|
|
| FbxBindingTable const * | GetRootTable () const |
| Retrieves a handle on the root binding
table. |
|
| FbxBindingTable * | GetRootTable () |
| Retrieves a handle on the root binding
table. |
|
| int | GetTableCount () const |
| Gets the number of binding tables. |
|
| FbxBindingTable const * | GetTable (int pIndex) const |
| Retrieves a handle on the (pIndex)th binding
table. |
|
| FbxBindingTable * | GetTable (int pIndex) |
| Retrieves a handle on the (pIndex)th binding
table. |
|
| FbxBindingTable const * | GetTableByTargetName (char const *pName) const |
| Returns the binding table that has the given
target name. |
|
| FbxBindingTable * | GetTableByTargetName (char const *pName) |
| Returns the binding table that has the given
target name. |
|
| FbxBindingTable const * | GetTableByTargetType (char const *pTargetName) const |
| Returns the binding table that has the given
target type. |
|
| FbxBindingTable * | GetTableByTargetType (char const *pTargetName) |
| Returns the binding table that has the given
target type. |
|
| FbxBindingOperator * | AddNewBindingOperator (char const *pTargetName, char const *pFunctionName) |
| Add a new binding operator to the operator
list. |
|
| int | GetBindingOperatorCount () const |
| Gets the number of binding operators.
|
|
| FbxBindingOperator const * | GetOperatorByTargetName (char const *pTargetName) const |
| Returns the binding operator 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.
|
|
| FbxImplementation | ( | FbxManager & | pManager, |
| char const * | pName | ||
| ) | [protected] |
| FbxProperty GetConstants | ( | ) | const |
Property to store the shader parameters(constants) values in this implementation.
| FbxBindingTable* 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. |
| FbxBindingTable const* GetRootTable | ( | ) | const |
Retrieves a handle on the root binding table.
| FbxBindingTable* GetRootTable | ( | ) |
Retrieves a handle on the root binding table.
| int GetTableCount | ( | ) | const |
Gets the number of binding tables.
| FbxBindingTable 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() ). |
| FbxBindingTable* 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() ). |
| FbxBindingTable const* GetTableByTargetName | ( | char const * | pName | ) | const |
Returns the binding table that has the given target name.
| pName | The target name of the table to look for. |
| FbxBindingTable* GetTableByTargetName | ( | char const * | pName | ) |
Returns the binding table that has the given target name.
| pName | The target name of the table to look for. |
| FbxBindingTable const* GetTableByTargetType | ( | char const * | pTargetName | ) | const |
Returns the binding table that has the given target type.
| pTargetType | The target type to look for. |
| FbxBindingTable* GetTableByTargetType | ( | char const * | pTargetName | ) |
Returns the binding table that has the given target type.
| pTargetType | The target type to look for. |
| FbxBindingOperator* AddNewBindingOperator | ( | char const * | pTargetName, |
| char const * | pFunctionName | ||
| ) |
Add a new binding operator to the operator list.
| pTargetName | The target name for the binding operator. |
| pFunctionName | The function name for the binding operator. |
| int GetBindingOperatorCount | ( | ) | const |
Gets the number of binding operators.
| FbxBindingOperator const* GetOperatorByTargetName | ( | char const * | pTargetName | ) | const |
Returns the binding operator that has the given name.
| pTargetName | The target name of the binding operator to look for. |
| virtual bool ConstructProperties | ( | bool | pForceSet | ) | [protected, virtual] |
Reimplemented from FbxObject.
Definition at line 62 of file fbximplementation.h.
Shader Language.
Definition at line 73 of file fbximplementation.h.
Shader Language version.
Definition at line 76 of file fbximplementation.h.
Render API.
Definition at line 81 of file fbximplementation.h.
Render API version.
Definition at line 84 of file fbximplementation.h.
Name of root binding table.
Definition at line 94 of file fbximplementation.h.
const char* sLanguage
[static] |
const char* sLanguageVersion
[static] |
Shader Language version.
Definition at line 192 of file fbximplementation.h.
const char* sRenderAPI
[static] |
const char* sRenderAPIVersion
[static] |
Shader render API version.
Definition at line 202 of file fbximplementation.h.
const char* sRootBindingName
[static] |
Name of root binding table.
Definition at line 207 of file fbximplementation.h.
const char* sConstants
[static] |
Name of property to store the shader parameters(constants) values in this implementation.
Definition at line 212 of file fbximplementation.h.
const char* sDefaultType
[static] |
default value for implementation type.
Definition at line 215 of file fbximplementation.h.
const char* sDefaultLanguage
[static] |
default value for shader language.
Definition at line 218 of file fbximplementation.h.
const char* sDefaultLanguageVersion
[static] |
default value for shader language version.
Definition at line 221 of file fbximplementation.h.
const char* sDefaultRenderAPI
[static] |
default value for shader render API.
Definition at line 224 of file fbximplementation.h.
const char* sDefaultRenderAPIVersion
[static] |
default value for shader render API version.
Definition at line 227 of file fbximplementation.h.
const char* sDefaultRootBindingName
[static] |
default value for root binding table name.
Definition at line 230 of file fbximplementation.h.