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

TextureMatrixGen Class Reference

#include <texmatrixgen.h>

Inheritance diagram for TextureMatrixGen:

Inheritance graph
[legend]
List of all members.

Detailed Description

Generator for texture coordinate effects in texture layers.

Author:
Mattias Jansson (mattias@realityrift.com)


Public Types

enum  TEXMODFUNCTABLEDEF { TEXMODFUNCTABLE_SIZE = 1024, TEXMODFUNCTABLE_MASK = ( TEXMODFUNCTABLE_SIZE - 1 ) }
 Definitions for texcoord modification functions lookup tables. More...


Public Member Functions

virtual void GenerateMatrix (Matrix *pkMatrix)=0
virtual TextureMatrixGenDuplicate ()=0

Static Public Attributes

float s_afSinTable [TEXMODFUNCTABLE_SIZE]
float s_afSquareTable [TEXMODFUNCTABLE_SIZE]
float s_afTriangleTable [TEXMODFUNCTABLE_SIZE]
float s_afSawToothTable [TEXMODFUNCTABLE_SIZE]
float s_afInverseSawToothTable [TEXMODFUNCTABLE_SIZE]


Member Enumeration Documentation

enum TEXMODFUNCTABLEDEF
 

Definitions for texcoord modification functions lookup tables.

Enumeration values:
TEXMODFUNCTABLE_SIZE  Size of lookup-table
TEXMODFUNCTABLE_MASK  Mask for clamping to table size


Member Function Documentation

virtual void GenerateMatrix Matrix pkMatrix  )  [pure virtual]
 

Generate texture transform matrix. The matrix already contains data, this generator should transform the current matrix with own data.

Parameters:
pkMatrix Matrix receiving data

Implemented in TextureMatrixGenScroll, TextureMatrixGenScale, TextureMatrixGenStretch, TextureMatrixGenTurbulence, TextureMatrixGenTransform, and TextureMatrixGenRotate.

virtual TextureMatrixGen* Duplicate  )  [pure virtual]
 

Duplicate object

Returns:
New object that is copy of this

Implemented in TextureMatrixGenScroll, TextureMatrixGenScale, TextureMatrixGenStretch, TextureMatrixGenTurbulence, TextureMatrixGenTransform, and TextureMatrixGenRotate.


Member Data Documentation

float s_afSinTable[ TEXMODFUNCTABLE_SIZE ] [static]
 

Lookup table for sin function

float s_afSquareTable[ TEXMODFUNCTABLE_SIZE ] [static]
 

Lookup table for square function

float s_afTriangleTable[ TEXMODFUNCTABLE_SIZE ] [static]
 

Lookup table for triangle function

float s_afSawToothTable[ TEXMODFUNCTABLE_SIZE ] [static]
 

Lookup table for sawtooth function

float s_afInverseSawToothTable[ TEXMODFUNCTABLE_SIZE ] [static]
 

Lookup table for inverse sawtooth function


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