This reference page is linked to from the following overview topics: FBX SDK 2012, Meshes, Materials and Textures, Layered Textures, List of Python FBX classes.
KFbxLayeredTexture is a combination of multiple textures(KFbxTexture) blended sequentially.
For example, you can access individual texture by:
KFbxTexture* pIndiTexture = lLayeredTexture->GetSrcObject(KFbxTexture::ClassId, pTextureIndex);
Another example to construct a layered texture with two sub textures.
KFbxFileTexture *background, *file1; KFbxLayeredTexture* layeredTexture; // connect two file textures to a layered texture via OO connections layeredTexture->ConnectSrcObject(background); layeredTexture->ConnectSrcObject(file1); // set the second file texture's blend mode and alpha. layeredTexture->SetTextureBlendMode(1, KFbxLayeredTexture::eOVER); layeredTexture->SetTextureAlpha(1, 0.5);
ImportScene/DisplayMaterial.cxx, ImportScene/DisplayMesh.cxx, ImportScene/DisplayTexture.cxx, and Layers/main.cxx.
Definition at line 46 of file kfbxlayeredtexture.h.
#include <kfbxlayeredtexture.h>
Classes |
|
struct | InputData |
Public Types |
|
enum |
EBlendMode { eTRANSLUCENT, eADDITIVE, eMODULATE, eMODULATE2, eOVER, eNORMAL, eDISSOLVE, eDARKEN, eCOLORBURN, eLINEARBURN, eDARKERCOLOR, eLIGHTEN, eSCREEN, eCOLORDODGE, eLINEARDODGE, eLIGHTERCOLOR, eSOFTLIGHT, eHARDLIGHT, eVIVIDLIGHT, eLINEARLIGHT, ePINLIGHT, eHARDMIX, eDIFFERENCE, eEXCLUSION, eSUBTRACT, eDIVIDE, eHUE, eSATURATION, eCOLOR, eLUMINOSITY } |
Blend modes. More... |
|
Public Member Functions |
|
bool | operator== (const KFbxLayeredTexture &pOther) const |
Equivalence operator. |
|
bool | SetTextureBlendMode (int pIndex, EBlendMode pMode) |
Sets the blending mode of a specified
texture. |
|
bool | GetTextureBlendMode (int pIndex, EBlendMode &pMode) const |
Returns the blending mode of a specified
texture. |
|
bool | SetTextureAlpha (int pIndex, double pAlpha) |
Sets the alpha of a specified texture.
|
|
bool | GetTextureAlpha (int pIndex, double &pAlpha) const |
Returns the alpha of a specified texture.
|
|
Public Attributes |
|
KArrayTemplate< InputData > | mInputData |
Protected Member Functions |
|
KFbxLayeredTexture (KFbxSdkManager &pManager, char const *pName) | |
virtual bool | ConnecNotify (KFbxConnectEvent const &pEvent) |
bool | RemoveInputData (int pIndex) |
enum EBlendMode |
Blend modes.
Reimplemented from KFbxTexture.
Definition at line 83 of file kfbxlayeredtexture.h.
{ eTRANSLUCENT, eADDITIVE, eMODULATE, eMODULATE2, eOVER, eNORMAL, eDISSOLVE, eDARKEN, eCOLORBURN, eLINEARBURN, eDARKERCOLOR, eLIGHTEN, eSCREEN, eCOLORDODGE, eLINEARDODGE, eLIGHTERCOLOR, eSOFTLIGHT, eHARDLIGHT, eVIVIDLIGHT, eLINEARLIGHT, ePINLIGHT, eHARDMIX, eDIFFERENCE, eEXCLUSION, eSUBTRACT, eDIVIDE, eHUE, eSATURATION, eCOLOR, eLUMINOSITY } EBlendMode;
KFbxLayeredTexture | ( | KFbxSdkManager & | pManager, |
char const * | pName | ||
) | [protected] |
bool operator== | ( | const KFbxLayeredTexture & | pOther | ) | const |
Equivalence operator.
pOther | The object for comparison. |
True
if pOther is equivalent to this object,
returns false
otherwise.bool SetTextureBlendMode | ( | int | pIndex, |
EBlendMode | pMode | ||
) |
Sets the blending mode of a specified texture.
pIndex | The texture index. |
pMode | The blend mode to be set. |
True
if successful, returns false
otherwise.bool GetTextureBlendMode | ( | int | pIndex, |
EBlendMode & | pMode | ||
) | const |
Returns the blending mode of a specified texture.
pIndex | The texture index. |
pMode | The parameter that will hold the returned blend mode. |
True
if successful, returns false
otherwise.bool SetTextureAlpha | ( | int | pIndex, |
double | pAlpha | ||
) |
Sets the alpha of a specified texture.
pIndex | The texture index. |
pAlpha | The alpha to be set. |
True
if successful, returns false
otherwise.bool GetTextureAlpha | ( | int | pIndex, |
double & | pAlpha | ||
) | const |
Returns the alpha of a specified texture.
pIndex | The texture index. |
pAlpha | The parameter that will hold the returned alpha. |
True
if successful, returns false
otherwise.virtual bool ConnecNotify | ( | KFbxConnectEvent const & | pEvent | ) | [protected, virtual] |
Reimplemented from KFbxObject.
bool RemoveInputData | ( | int | pIndex | ) | [protected] |
Definition at line 170 of file kfbxlayeredtexture.h.