Perlin noise module class.
More...
#include <Perlin.h>
Perlin noise module class.
Definition at line 73 of file Perlin.h.
◆ Perlin() [1/2]
Hydrax::Noise::Perlin::Perlin |
( |
| ) |
|
Default constructor.
Definition at line 37 of file Perlin.cpp.
◆ Perlin() [2/2]
Hydrax::Noise::Perlin::Perlin |
( |
const Options & |
Options | ) |
|
Constructor.
- Parameters
-
Definition at line 46 of file Perlin.cpp.
◆ ~Perlin()
Hydrax::Noise::Perlin::~Perlin |
( |
| ) |
|
◆ _calculeNoise()
void Hydrax::Noise::Perlin::_calculeNoise |
( |
| ) |
|
|
private |
◆ _getHeigthDual()
float Hydrax::Noise::Perlin::_getHeigthDual |
( |
float |
u, |
|
|
float |
v |
|
) |
| |
|
private |
Read texel linear.
- Parameters
-
- Returns
- Heigth
Definition at line 547 of file Perlin.cpp.
◆ _initNoise()
void Hydrax::Noise::Perlin::_initNoise |
( |
| ) |
|
|
private |
◆ _mapSample()
int Hydrax::Noise::Perlin::_mapSample |
( |
const int & |
u, |
|
|
const int & |
v, |
|
|
const int & |
upsamplepower, |
|
|
const int & |
octave |
|
) |
| |
|
private |
Map sample.
- Parameters
-
u | u |
v | v |
level | Level |
octave | Octave |
- Returns
- Map sample
Definition at line 569 of file Perlin.cpp.
◆ _readTexelLinearDual()
int Hydrax::Noise::Perlin::_readTexelLinearDual |
( |
const int & |
u, |
|
|
const int & |
v, |
|
|
const int & |
o |
|
) |
| |
|
private |
Read texel linear dual.
- Parameters
-
- Returns
- int
Definition at line 526 of file Perlin.cpp.
◆ _updateGPUNormalMapResources()
void Hydrax::Noise::Perlin::_updateGPUNormalMapResources |
( |
| ) |
|
|
private |
Update gpu normal map resources.
Definition at line 378 of file Perlin.cpp.
◆ create()
void Hydrax::Noise::Perlin::create |
( |
| ) |
|
|
virtual |
◆ createGPUNormalMapResources()
Create GPUNormalMap resources.
- Parameters
-
- Returns
- true if it needs to be created, false if not
Reimplemented from Hydrax::Noise::Noise.
Definition at line 126 of file Perlin.cpp.
◆ getOptions()
const Options& Hydrax::Noise::Perlin::getOptions |
( |
| ) |
const |
|
inline |
Get current Perlin noise options.
- Returns
- Current perlin noise options
Definition at line 226 of file Perlin.h.
◆ getValue()
float Hydrax::Noise::Perlin::getValue |
( |
const float & |
x, |
|
|
const float & |
y |
|
) |
| |
|
virtual |
◆ loadCfg()
bool Hydrax::Noise::Perlin::loadCfg |
( |
Ogre::ConfigFile & |
CfgFile | ) |
|
|
virtual |
◆ remove()
void Hydrax::Noise::Perlin::remove |
( |
| ) |
|
|
virtual |
◆ saveCfg()
void Hydrax::Noise::Perlin::saveCfg |
( |
Ogre::String & |
Data | ) |
|
|
virtual |
◆ setOptions()
void Hydrax::Noise::Perlin::setOptions |
( |
const Options & |
Options | ) |
|
Set/Update perlin noise options.
- Parameters
-
Definition at line 91 of file Perlin.cpp.
◆ update()
void Hydrax::Noise::Perlin::update |
( |
const Ogre::Real & |
timeSinceLastFrame | ) |
|
|
virtual |
◆ magnitude
float Hydrax::Noise::Perlin::magnitude |
|
private |
◆ mGPUNormalMapManager
◆ mOptions
Options Hydrax::Noise::Perlin::mOptions |
|
private |
◆ noise
◆ o_noise
◆ p_noise
◆ r_noise
int* Hydrax::Noise::Perlin::r_noise |
|
private |
◆ time
double Hydrax::Noise::Perlin::time |
|
private |
The documentation for this class was generated from the following files: