KFbxLayerElementTexture Class Reference

#include <kfbxlayer.h>

List of all members.


Detailed Description

Layer to map Textures on a geometry.

Definition at line 689 of file kfbxlayer.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 (EBlendMode pBlendMode)
 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

enum EBlendMode

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

  • eTRANSLUCENT The new texture layer is transparent depending on the Alpha value.
  • eADD The color of the new texture is added to the previous texture.
  • eMODULATE The color value of the new texture is multiplied by the color values of all previous layers of texture.
  • eMODULATE2 The color value of the new texure is multiplied by two and then multiplied by the color values of all previous layers of texture.
  • eMAXBLEND Marks the end of the blend mode enum.

Definition at line 701 of file kfbxlayer.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 line 713 of file kfbxlayer.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 line 719 of file kfbxlayer.h.

EBlendMode GetBlendMode (  )  [inline]

Get the way Textures are blended between layers.

Returns:
The current Blend Mode.

Definition at line 728 of file kfbxlayer.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 line 733 of file kfbxlayer.h.