28namespace Hydrax{
namespace Noise
30 Noise::Noise(
const Ogre::String &Name,
const bool& GPUNormalMapSupported)
33 , mGPUNormalMapSupported(GPUNormalMapSupported)
34 , mGPUNormalMapResourcesCreated(false)
30 Noise::Noise(
const Ogre::String &Name,
const bool& GPUNormalMapSupported) {
…}
83 Data +=
"#Noise options\n";
84 Data +=
"Noise="+
mName+
"\n\n";
89 if (CfgFile.getSetting(
"Noise") ==
mName)
95 HydraxLOG(
"Error (Noise::loadCfg):\t" +
mName +
" options entry can not be found.");
Central state/object manager and communications hub.
Class to manager GPU normal maps.
Base noise class, Override it for create different ways of create water noise.
virtual void remove()
Remove.
virtual ~Noise()
Destructor.
virtual bool createGPUNormalMapResources(GPUNormalMapManager *g)
Create GPUNormalMap resources.
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 removeGPUNormalMapResources(GPUNormalMapManager *g)
Remove GPUNormalMap resources.
virtual void saveCfg(Ogre::String &Data)
Save config.
Ogre::String mName
Module name.
virtual void create()
Create.
bool mGPUNormalMapSupported
Is GPU normal map generation supported?