This reference page is linked to from the following overview topics: Meshes, Materials and Textures, List of Python Fbx classes, Layered Textures.
#include <fbxlayeredtexture.h>
FbxLayeredTexture is a combination of multiple textures(FbxTexture) blended sequentially.
For example, you can access individual texture by:
FbxTexture* pIndiTexture = lLayeredTexture->GetSrcObject(FbxTexture::ClassId, pTextureIndex);
Another example to construct a layered texture with two sub textures.
FbxFileTexture *background, *file1; FbxLayeredTexture* 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, FbxLayeredTexture::eOver); layeredTexture->SetTextureAlpha(1, 0.5);
ImportScene/DisplayMaterial.cxx, ImportScene/DisplayMesh.cxx, ImportScene/DisplayTexture.cxx, and Layers/main.cxx.
Definition at line 43 of file fbxlayeredtexture.h.
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, eOverlay, eBlendModeCount } |
| Blend modes. More... |
|
Public Member Functions |
|
| bool | operator== (const FbxLayeredTexture &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.
|
|
| enum EBlendMode |
Blend modes.
Reimplemented from FbxTexture.
Definition at line 82 of file fbxlayeredtexture.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,
eOverlay,
eBlendModeCount
};
| bool operator== | ( | const FbxLayeredTexture & | 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.