25#ifndef _Hydrax_Noise_H_
26#define _Hydrax_Noise_H_
37namespace 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
Class to manager GPU normal maps.
Base noise class, Override it for create different ways of create water noise.
virtual void remove()
Remove.
const Ogre::String & getName() const
Get noise name.
virtual ~Noise()
Destructor.
const bool & areGPUNormalMapResourcesCreated() const
Are GPU normal map resources created?
virtual bool createGPUNormalMapResources(GPUNormalMapManager *g)
Create GPUNormalMap resources.
virtual float getValue(const float &x, const float &y)=0
Get the especified x/y noise value.
virtual bool loadCfg(Ogre::ConfigFile &CfgFile)
Load config.
bool mCreated
Has create() been already called?
bool mGPUNormalMapResourcesCreated
Are GPU normal map resources created?
virtual void update(const Ogre::Real &timeSinceLastFrame)=0
Call it each frame.
const bool & isGPUNormalMapSupported() const
Is GPU Normal map generation supported.
virtual void removeGPUNormalMapResources(GPUNormalMapManager *g)
Remove GPUNormalMap resources.
virtual void saveCfg(Ogre::String &Data)
Save config.
Ogre::String mName
Module name.
virtual void create()
Create.
const bool & isCreated() const
Is created() called?
bool mGPUNormalMapSupported
Is GPU normal map generation supported?