This reference page is linked to from the following overview topics: List of Python Fbx classes.
Layer element for mapping Textures to a geometry.
This class is deprecated.
Deprecated since FBX SDK 2011. Textures (FbxTexture derived classes) should be connected to material properties.
For example:
FbxFileTexture* file; FbxSurfacePhong* phong; phong->Diffuse.ConnectSrcObject(file);
Definition at line 2143 of file fbxlayer.h.
#include <fbxlayer.h>

Public Types | |
| enum | EBlendMode { eTranslucent, eAdd, 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 } |
Lets you control how textures are combined when you apply multiple layers of texture to a surface. More... | |
Public Member Functions | |
| FBXSDK_LAYER_ELEMENT_CREATE_DECLARE (LayerElementTexture) | |
| Allocation method. | |
| void | SetBlendMode (EBlendMode pBlendMode) |
| Sets the way Textures blend between layers. | |
| void | SetAlpha (double pAlpha) |
| Sets the transparency level between multiple texture levels. | |
| EBlendMode | GetBlendMode () const |
| Returns the way Textures blend between layers. | |
| double | GetAlpha () const |
| Returns the transparency level between multiple levels of textures. | |
| virtual int | MemorySize () const |
Protected Member Functions | |
| FbxLayerElementTexture () | |
| Constructor By default, textures have a Blend Mode of eTranslucent, a Reference Mode of eIndexToDirect, and an Alpha value of 1.0. | |
| enum EBlendMode |
Lets you control how textures are combined when you apply multiple layers of texture to a surface.
Definition at line 2185 of file fbxlayer.h.
{
eTranslucent,
eAdd,
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
};
| FbxLayerElementTexture | ( | ) | [inline, protected] |
Constructor By default, textures have a Blend Mode of eTranslucent, a Reference Mode of eIndexToDirect, and an Alpha value of 1.0.
Definition at line 2267 of file fbxlayer.h.
: mBlendMode(eTranslucent) { mReferenceMode = eIndexToDirect; mAlpha = 1.0; }
| FBXSDK_LAYER_ELEMENT_CREATE_DECLARE | ( | LayerElementTexture | ) |
Allocation method.
NULL if creation fails. | void SetBlendMode | ( | EBlendMode | pBlendMode | ) | [inline] |
Sets the way Textures blend between layers.
| pBlendMode | A valid blend mode. |
Definition at line 2224 of file fbxlayer.h.
{ mBlendMode = pBlendMode; }
| void SetAlpha | ( | double | pAlpha | ) | [inline] |
Sets the transparency level between multiple texture levels.
| pAlpha | Set to a value between 0.0 and 1.0, where 0.0 is totally transparent and 1.0 is totally opaque. |
Definition at line 2230 of file fbxlayer.h.
{
if (pAlpha > 1.0)
mAlpha = 1.0;
else if (pAlpha < 0.0)
mAlpha = 0.0;
else
mAlpha = pAlpha;
}
| EBlendMode GetBlendMode | ( | ) | const [inline] |
Returns the way Textures blend between layers.
Definition at line 2243 of file fbxlayer.h.
{ return mBlendMode; }
| double GetAlpha | ( | ) | const [inline] |
Returns the transparency level between multiple levels of textures.
Definition at line 2248 of file fbxlayer.h.
{ return mAlpha; }
| virtual int MemorySize | ( | ) | const [inline, virtual] |
Reimplemented from FbxLayerElementTemplate< FbxTexture * >.
Definition at line 2254 of file fbxlayer.h.
{
int size = FbxLayerElementTemplate<FbxTexture*>::MemorySize();
size += sizeof(mBlendMode);
size += sizeof(mAlpha);
return size;
}