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

TextureMatrixGenTurbulence Class Reference

#include <texmatrixgen.h>

Inheritance diagram for TextureMatrixGenTurbulence:

Inheritance graph
[legend]
Collaboration diagram for TextureMatrixGenTurbulence:

Collaboration graph
[legend]
List of all members.

Detailed Description

Generator for turbulence 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)
virtual TextureMatrixGenDuplicate ()

Public Attributes

float m_fBase
float m_fAmplitude
float m_fPhase
float m_fFrequency

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 [inherited]
 

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  )  [virtual]
 

Generate texture transform matrix

Parameters:
pkMatrix Matrix receiving data

Implements TextureMatrixGen.

virtual TextureMatrixGen* Duplicate  )  [virtual]
 

Duplicate object

Returns:
New object that is copy of this

Implements TextureMatrixGen.


Member Data Documentation

float m_fBase
 

Base

float m_fAmplitude
 

Amplitude

float m_fPhase
 

Phase

float m_fFrequency
 

Frequency

float s_afSinTable[ TEXMODFUNCTABLE_SIZE ] [static, inherited]
 

Lookup table for sin function

float s_afSquareTable[ TEXMODFUNCTABLE_SIZE ] [static, inherited]
 

Lookup table for square function

float s_afTriangleTable[ TEXMODFUNCTABLE_SIZE ] [static, inherited]
 

Lookup table for triangle function

float s_afSawToothTable[ TEXMODFUNCTABLE_SIZE ] [static, inherited]
 

Lookup table for sawtooth function

float s_afInverseSawToothTable[ TEXMODFUNCTABLE_SIZE ] [static, inherited]
 

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