KFbxLayerElementTexture
#include<kfbxlayer.h>

List of all members.

Detailed Description

Layer to map Textures on a geometry.

Definition at line1482of filekfbxlayer.h.


Public Types

enum EBlendMode
 Lets you control how textures are combined when multiple layers of texture are applied to an surface.More...

Public Member Functions

void SetBlendMode(EBlendModepBlendMode)
 Set the way Textures are blended between layers.
void SetAlpha(double pAlpha)
 Set the level of transparency between multiple texture levels.
EBlendMode GetBlendMode()
 Get the way Textures are blended between layers.
double GetAlpha()
 Get the level of transparency between multiple levels of textures.

Member Enumeration Documentation

Lets you control how textures are combined when multiple layers of texture are applied to an surface.

  • eTRANSLUCENTThe new texture layer is transparent depending on the Alpha value.
  • eADDThe color of the new texture is added to the previous texture.
  • eMODULATEThe color value of the new texture is multiplied by the color values of all previous layers of texture.
  • eMODULATE2The color value of the new texure is multiplied by two and then multiplied by the color values of all previous layers of texture.
  • eMAXBLENDMarks the end of the blend mode enum.

Definition at line1495of filekfbxlayer.h.

Member Function Documentation

void SetBlendMode(EBlendMode pBlendMode ) [inline]

Set the way Textures are blended between layers.

Parameters:
pBlendMode A valid blend mode.

Definition at line1507of filekfbxlayer.h.

void SetAlpha(double pAlpha ) [inline]

Set the level of transparency between multiple texture levels.

Parameters:
pAlpha Set to a value between 0.0 and 1.0, where 0.0 is totally transparent and 1.0 is totally opaque.
Remarks:
Values smaller than 0.0 are clipped to 0.0, while values larger than 1.0 are clipped to 1.0.

Definition at line1513of filekfbxlayer.h.

EBlendModeGetBlendMode( ) [inline]

Get the way Textures are blended between layers.

Returns:
The current Blend Mode.

Definition at line1522of filekfbxlayer.h.

double GetAlpha( ) [inline]

Get the level of transparency between multiple levels of textures.

Returns:
An alpha value between 0.0 and 1.0, where 0.0 is totally transparent and 1.0 is totally opaque.

Definition at line1527of filekfbxlayer.h.