![]() |
Rigs of Rods 2026.01
Soft-body Physics Simulation
|
Base noise class, Override it for create different ways of create water noise.
Inheritance diagram for Hydrax::Noise::Noise:Public Member Functions | |
| Noise (const Ogre::String &Name, const bool &GPUNormalMapSupported) | |
| virtual | ~Noise () |
| virtual void | create () |
| virtual void | remove () |
| virtual bool | createGPUNormalMapResources (GPUNormalMapManager *g) |
| virtual void | removeGPUNormalMapResources (GPUNormalMapManager *g) |
| virtual void | update (const Ogre::Real &timeSinceLastFrame)=0 |
| virtual void | saveCfg (Ogre::String &Data) |
| virtual bool | loadCfg (Ogre::ConfigFile &CfgFile) |
| const Ogre::String & | getName () const |
| const bool & | isCreated () const |
| const bool & | isGPUNormalMapSupported () const |
| const bool & | areGPUNormalMapResourcesCreated () const |
| virtual float | getValue (const float &x, const float &y)=0 |
Protected Attributes | |
| Ogre::String | mName |
| bool | mCreated |
| bool | mGPUNormalMapSupported |
| bool | mGPUNormalMapResourcesCreated |
| Hydrax::Noise::Noise::Noise | ( | const Ogre::String & | Name, |
| const bool & | GPUNormalMapSupported | ||
| ) |
|
inline |
|
virtual |
Create.
Reimplemented in Hydrax::Noise::FFT, Hydrax::Noise::Perlin, and Hydrax::Noise::Real.
|
virtual |
Create GPUNormalMap resources.
| g | GPUNormalMapManager pointer |
Reimplemented in Hydrax::Noise::FFT, Hydrax::Noise::Perlin, and Hydrax::Noise::Real.
|
inline |
|
pure virtual |
Get the especified x/y noise value.
| x | X Coord |
| y | Y Coord |
Implemented in Hydrax::Noise::FFT, Hydrax::Noise::Perlin, and Hydrax::Noise::Real.
|
inline |
|
inline |
|
virtual |
Load config.
Reimplemented in Hydrax::Noise::FFT, Hydrax::Noise::Perlin, and Hydrax::Noise::Real.
|
virtual |
Remove.
Reimplemented in Hydrax::Noise::FFT, Hydrax::Noise::Perlin, and Hydrax::Noise::Real.
|
virtual |
Remove GPUNormalMap resources.
| g | GPUNormalMapManager pointer |
|
virtual |
Save config.
| Data | String reference |
Reimplemented in Hydrax::Noise::FFT, Hydrax::Noise::Perlin, and Hydrax::Noise::Real.
|
pure virtual |
Call it each frame.
| timeSinceLastFrame | Time since last frame(delta) |
Implemented in Hydrax::Noise::FFT, Hydrax::Noise::Perlin, and Hydrax::Noise::Real.
|
protected |
|
protected |
|
protected |
|
protected |