|
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
25 #ifndef _Hydrax_Noise_H_
26 #define _Hydrax_Noise_H_
37 namespace Hydrax{
namespace Noise
49 Noise(
const Ogre::String &Name,
const bool& GPUNormalMapSupported);
77 virtual void update(
const Ogre::Real &timeSinceLastFrame) = 0;
82 virtual void saveCfg(Ogre::String &Data);
87 virtual bool loadCfg(Ogre::ConfigFile &CfgFile);
92 inline const Ogre::String&
getName()
const
126 virtual float getValue(
const float &
x,
const float &
y) = 0;
virtual void remove()
Remove.
virtual bool createGPUNormalMapResources(GPUNormalMapManager *g)
Create GPUNormalMap resources.
virtual void create()
Create.
virtual ~Noise()
Destructor.
virtual void removeGPUNormalMapResources(GPUNormalMapManager *g)
Remove GPUNormalMap resources.
virtual bool loadCfg(Ogre::ConfigFile &CfgFile)
Load config.
virtual void saveCfg(Ogre::String &Data)
Save config.
Class to manager GPU normal maps.
virtual float getValue(const float &x, const float &y)=0
Get the especified x/y noise value.
const Ogre::String & getName() const
Get noise name.
Base noise class, Override it for create different ways of create water noise.
bool mGPUNormalMapResourcesCreated
Are GPU normal map resources created?
Noise(const Ogre::String &Name, const bool &GPUNormalMapSupported)
Constructor.
bool mGPUNormalMapSupported
Is GPU normal map generation supported?
bool mCreated
Has create() been already called?
const bool & areGPUNormalMapResourcesCreated() const
Are GPU normal map resources created?
virtual void update(const Ogre::Real &timeSinceLastFrame)=0
Call it each frame.
const bool & isCreated() const
Is created() called?
Ogre::String mName
Module name.
const bool & isGPUNormalMapSupported() const
Is GPU Normal map generation supported.