WaveTile are Texture used to advect rivers normal. More...
#include <AnimatedPerlinWaveTile.h>
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. |
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.
proland::AnimatedPerlinWaveTile::AnimatedPerlinWaveTile | ( | string & | name, | |
int | tileSize, | |||
int | gridSize, | |||
float | waveLength, | |||
int | timeLoop | |||
) |
Creates a new AnimatedPerlinWaveTile.
See WaveTile::WaveTile().
virtual proland::AnimatedPerlinWaveTile::~AnimatedPerlinWaveTile | ( | ) | [virtual] |
Deletes an AnimatedPerlinWaveTile.
proland::AnimatedPerlinWaveTile::AnimatedPerlinWaveTile | ( | ) | [protected] |
Creates a new AnimatedPerlinWaveTile.
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.
vector<ptr<Texture2D> > proland::AnimatedPerlinWaveTile::tex [protected] |
Contains the textures used to animate the wave profile.
Reimplemented from proland::WaveTile.