proland::AnimatedPerlinWaveTile Class Reference
[rivers]

WaveTile are Texture used to advect rivers normal. More...

#include <AnimatedPerlinWaveTile.h>

Inheritance diagram for proland::AnimatedPerlinWaveTile:
proland::WaveTile

List of all members.

Classes

struct  Noise
 3D Noise generator. More...

Public Member Functions

 AnimatedPerlinWaveTile (string &name, int tileSize, int gridSize, float waveLength, int timeLoop)
 Creates a new AnimatedPerlinWaveTile.
virtual ~AnimatedPerlinWaveTile ()
 Deletes an AnimatedPerlinWaveTile.
virtual void updateUniform (ptr< Program > p)
 See WaveTile::updateUniform().

Protected Member Functions

 AnimatedPerlinWaveTile ()
 Creates a new AnimatedPerlinWaveTile.
void init (ptr< Texture2D > t, int size, int numLodLevels, int timeLoop, unsigned int seed)
 Initializes the fields of a AnimatedPerlinWaveTile.
virtual void init (string &name, int tileSize, int gridSize, float waveLength, int timeLoop)
 Initializes the fields of a AnimatedPerlinWaveTile.

Protected Attributes

vector< ptr< Texture2D > > tex
 Contains the textures used to animate the wave profile.

Detailed Description

WaveTile are Texture used to advect rivers normal.

They can be updated through time, in order to change the waves profiles. AnimatedPerlinWaveTile is a serie of timeLoop Noise Textures displayed successively.

Author:
Antoine Begault

Constructor & Destructor Documentation

proland::AnimatedPerlinWaveTile::AnimatedPerlinWaveTile ( string &  name,
int  tileSize,
int  gridSize,
float  waveLength,
int  timeLoop 
)
virtual proland::AnimatedPerlinWaveTile::~AnimatedPerlinWaveTile (  )  [virtual]
proland::AnimatedPerlinWaveTile::AnimatedPerlinWaveTile (  )  [protected]

Creates a new AnimatedPerlinWaveTile.


Member Function Documentation

virtual void proland::AnimatedPerlinWaveTile::init ( string &  name,
int  tileSize,
int  gridSize,
float  waveLength,
int  timeLoop 
) [protected, virtual]

Initializes the fields of a AnimatedPerlinWaveTile.

See WaveTile::init().

void proland::AnimatedPerlinWaveTile::init ( ptr< Texture2D >  t,
int  size,
int  numLodLevels,
int  timeLoop,
unsigned int  seed 
) [protected]

Initializes the fields of a AnimatedPerlinWaveTile.

See WaveTile::init().

virtual void proland::AnimatedPerlinWaveTile::updateUniform ( ptr< Program >  p  )  [virtual]

See WaveTile::updateUniform().

Reimplemented from proland::WaveTile.


Member Data Documentation

vector<ptr<Texture2D> > proland::AnimatedPerlinWaveTile::tex [protected]

Contains the textures used to animate the wave profile.

Reimplemented from proland::WaveTile.


Generated on Sat May 12 09:42:58 2012 for proland by  doxygen 1.6.1