RigsofRods
Soft-body Physics Simulation
|
Base noise class, Override it for create different ways of create water noise. More...
#include <Noise.h>
Public Member Functions | |
Noise (const Ogre::String &Name, const bool &GPUNormalMapSupported) | |
Constructor. More... | |
virtual | ~Noise () |
Destructor. More... | |
virtual void | create () |
Create. More... | |
virtual void | remove () |
Remove. More... | |
virtual bool | createGPUNormalMapResources (GPUNormalMapManager *g) |
Create GPUNormalMap resources. More... | |
virtual void | removeGPUNormalMapResources (GPUNormalMapManager *g) |
Remove GPUNormalMap resources. More... | |
virtual void | update (const Ogre::Real &timeSinceLastFrame)=0 |
Call it each frame. More... | |
virtual void | saveCfg (Ogre::String &Data) |
Save config. More... | |
virtual bool | loadCfg (Ogre::ConfigFile &CfgFile) |
Load config. More... | |
const Ogre::String & | getName () const |
Get noise name. More... | |
const bool & | isCreated () const |
Is created() called? More... | |
const bool & | isGPUNormalMapSupported () const |
Is GPU Normal map generation supported. More... | |
const bool & | areGPUNormalMapResourcesCreated () const |
Are GPU normal map resources created? More... | |
virtual float | getValue (const float &x, const float &y)=0 |
Get the especified x/y noise value. More... | |
Protected Attributes | |
Ogre::String | mName |
Module name. More... | |
bool | mCreated |
Has create() been already called? More... | |
bool | mGPUNormalMapSupported |
Is GPU normal map generation supported? More... | |
bool | mGPUNormalMapResourcesCreated |
Are GPU normal map resources created? More... | |
Base noise class, Override it for create different ways of create water noise.
Hydrax::Noise::Noise::Noise | ( | const Ogre::String & | Name, |
const bool & | GPUNormalMapSupported | ||
) |
|
inline |
|
virtual |
Create.
Reimplemented in Hydrax::Noise::Perlin, Hydrax::Noise::FFT, and Hydrax::Noise::Real.
Definition at line 42 of file Noise.cpp.
|
virtual |
Create GPUNormalMap resources.
g | GPUNormalMapManager pointer |
Reimplemented in Hydrax::Noise::Perlin, Hydrax::Noise::FFT, and Hydrax::Noise::Real.
Definition at line 52 of file Noise.cpp.
|
inline |
|
pure virtual |
Get the especified x/y noise value.
x | X Coord |
y | Y Coord |
Implemented in Hydrax::Noise::Perlin, Hydrax::Noise::FFT, and Hydrax::Noise::Real.
|
inline |
|
inline |
|
virtual |
Load config.
Reimplemented in Hydrax::Noise::Perlin, Hydrax::Noise::FFT, and Hydrax::Noise::Real.
Definition at line 87 of file Noise.cpp.
|
virtual |
Remove.
Reimplemented in Hydrax::Noise::Perlin, Hydrax::Noise::FFT, and Hydrax::Noise::Real.
Definition at line 47 of file Noise.cpp.
|
virtual |
Remove GPUNormalMap resources.
g | GPUNormalMapManager pointer |
Definition at line 71 of file Noise.cpp.
|
virtual |
Save config.
Data | String reference |
Reimplemented in Hydrax::Noise::Perlin, Hydrax::Noise::FFT, and Hydrax::Noise::Real.
Definition at line 81 of file Noise.cpp.
|
pure virtual |
Call it each frame.
timeSinceLastFrame | Time since last frame(delta) |
Implemented in Hydrax::Noise::Perlin, Hydrax::Noise::FFT, and Hydrax::Noise::Real.
|
protected |
|
protected |
|
protected |
|
protected |