Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | Related Pages

TextureLayer Class Reference

#include <material.h>

Inheritance diagram for TextureLayer:

Inheritance graph
[legend]
Collaboration diagram for TextureLayer:

Collaboration graph
[legend]
List of all members.

Detailed Description

Data for a single texture layer Base for texture in materials. Also used for multi-texturing.

Author:
Mattias Jansson (mattias@realityrift.com)


Public Types

enum  TEXTURELAYERFLAG { NOFLAGS = 0x0000, MULTIPASS = 0x0001 }
 Texture layer flags. More...

enum  TEXTUREADDRESSMODE {
  WRAP = 0x00000000, WRAP_U = 0x00000000, WRAP_V = 0x00000000, WRAP_W = 0x00000000,
  CLAMP = 0x00001111, CLAMP_U = 0x00000001, CLAMP_V = 0x00000010, CLAMP_W = 0x00000100
}
 Texture addressing modes To set texture addressing modes, set the wrap to either WRAP or CLAMP for all coordinates, or use WRAP_x or CLAMP_x combinations for detailed control. Default is WRAP for all dimensions. More...

enum  TEXCOORDGENERATION { NOGEN = 0, REFLECTION = 1, NORMAL = 2 }
 Automatic texture coordinate generation. More...


Public Member Functions

 TextureLayer ()
 TextureLayer (const TextureLayer &rkLayer)
virtual ~TextureLayer ()
const TextureLayeroperator= (const TextureLayer &rkLayer)

Static Public Member Functions

unsigned int GetFlagFromString (const std::string &rstrIdentifier)

Public Attributes

BlendMode m_kBlendMode
TexturePtr m_pkTexture
unsigned int m_uiUVLayer
unsigned int m_uiUVAddress
std::vector< TextureMatrixGen * > m_vpkTexMatrixGen
unsigned int m_uiLayerFlags
TEXCOORDGENERATION m_eTexCoordGen


Member Enumeration Documentation

enum TEXTURELAYERFLAG
 

Texture layer flags.

Enumeration values:
NOFLAGS  Default rendering mode
MULTIPASS  Force multipass rendering

enum TEXTUREADDRESSMODE
 

Texture addressing modes To set texture addressing modes, set the wrap to either WRAP or CLAMP for all coordinates, or use WRAP_x or CLAMP_x combinations for detailed control. Default is WRAP for all dimensions.

Enumeration values:
WRAP  Wrap all coordinates
WRAP_U  Wrap U coordinates
WRAP_V  Wrap V coordinates
WRAP_W  Wrap V coordinates
CLAMP  Clamp all coordinates
CLAMP_U  Clamp U coordinates
CLAMP_V  Clamp V coordinates
CLAMP_W  Clamp W coordinates

enum TEXCOORDGENERATION
 

Automatic texture coordinate generation.

Enumeration values:
NOGEN  No special texcoord generator
REFLECTION  Reflection vector
NORMAL  Normal vector


Constructor & Destructor Documentation

TextureLayer  )  [inline]
 

TextureLayer const TextureLayer rkLayer  )  [inline]
 

Parameters:
rkLayer Layer reference object to copy values from

virtual ~TextureLayer  )  [virtual]
 


Member Function Documentation

const TextureLayer& operator= const TextureLayer rkLayer  ) 
 

Assignment

Parameters:
rkLayer Texture layer to copy values from
Returns:
const TextureLayer ref (*this)

unsigned int GetFlagFromString const std::string &  rstrIdentifier  )  [static]
 

Returns:
Layer flag string identifier as integer matching define


Member Data Documentation

BlendMode m_kBlendMode
 

Blend mode

TexturePtr m_pkTexture
 

Texture object

unsigned int m_uiUVLayer
 

UV layer to use, 0 to indicate base layer

unsigned int m_uiUVAddress
 

Texture addressing mode

std::vector< TextureMatrixGen* > m_vpkTexMatrixGen
 

Texture matrix generators

unsigned int m_uiLayerFlags
 

Flags

TEXCOORDGENERATION m_eTexCoordGen
 

Texture coord generation


The documentation for this class was generated from the following file:
Generated on Wed Jan 21 14:21:12 2004 for NeoEngine by doxygen 1.3.5