![]() |
Rigs of Rods 2023.09
Soft-body Physics Simulation
|
Base noise class, Override it for create different ways of create water noise. More...
#include <Noise.h>
Inheritance diagram for Hydrax::Noise::Noise:Public Member Functions | |
| Noise (const Ogre::String &Name, const bool &GPUNormalMapSupported) | |
| Constructor. | |
| virtual | ~Noise () |
| Destructor. | |
| virtual void | create () |
| Create. | |
| virtual void | remove () |
| Remove. | |
| virtual bool | createGPUNormalMapResources (GPUNormalMapManager *g) |
| Create GPUNormalMap resources. | |
| virtual void | removeGPUNormalMapResources (GPUNormalMapManager *g) |
| Remove GPUNormalMap resources. | |
| virtual void | update (const Ogre::Real &timeSinceLastFrame)=0 |
| Call it each frame. | |
| virtual void | saveCfg (Ogre::String &Data) |
| Save config. | |
| virtual bool | loadCfg (Ogre::ConfigFile &CfgFile) |
| Load config. | |
| const Ogre::String & | getName () const |
| Get noise name. | |
| const bool & | isCreated () const |
| Is created() called? | |
| const bool & | isGPUNormalMapSupported () const |
| Is GPU Normal map generation supported. | |
| const bool & | areGPUNormalMapResourcesCreated () const |
| Are GPU normal map resources created? | |
| virtual float | getValue (const float &x, const float &y)=0 |
| Get the especified x/y noise value. | |
Protected Attributes | |
| Ogre::String | mName |
| Module name. | |
| bool | mCreated |
| Has create() been already called? | |
| bool | mGPUNormalMapSupported |
| Is GPU normal map generation supported? | |
| bool | mGPUNormalMapResourcesCreated |
| Are GPU normal map resources created? | |
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::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 |