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 (KFbxTexture derived classes) should be connected to material properties.
For example:
KFbxFileTexture* file; KFbxSurfacePhong* phong; phong->Diffuse.ConnectSrcObject(file);
Definition at line 2247 of file kfbxlayer.h.
#include <kfbxlayer.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, eMAXBLEND } |
Lets you control how textures are combined when you apply multiple layers of texture to a surface. More... |
|
Public Member Functions |
|
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 |
|
KFbxLayerElementTexture () | |
Constructor By default, textures have a
Blend Mode of eTRANSLUCENT, a Reference Mode of eINDEX_TO_DIRECT,
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 2290 of file kfbxlayer.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, eMAXBLEND } EBlendMode;
KFbxLayerElementTexture | ( | ) | [inline, protected] |
Constructor By default, textures have a Blend Mode of eTRANSLUCENT, a Reference Mode of eINDEX_TO_DIRECT, and an Alpha value of 1.0.
Definition at line 2377 of file kfbxlayer.h.
: mBlendMode(eTRANSLUCENT) { mReferenceMode = eINDEX_TO_DIRECT; mAlpha = 1.0; }
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 2328 of file kfbxlayer.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 2334 of file kfbxlayer.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 2347 of file kfbxlayer.h.
{ return mBlendMode; }
double GetAlpha | ( | ) | const [inline] |
Returns the transparency level between multiple levels of textures.
Definition at line 2352 of file kfbxlayer.h.
{ return mAlpha; }
virtual int MemorySize | ( | ) | const [inline, virtual] |
Definition at line 2364 of file kfbxlayer.h.
{ int size = KFbxLayerElementTextureBase::MemorySize(); size += sizeof(mBlendMode); size += sizeof(mAlpha); return size; }