35 , mMeshOptions(MeshOptions)
36 , mNormalMode(NormalMode)
101 Data +=
"#Module options\n";
102 Data +=
"Module="+
mName+
"\n\n";
107 if (CfgFile.getSetting(
"Module") ==
mName)
113 HydraxLOG(
"Error (Module::loadCfg):\t" +
mName +
" options entry can not be found.");
Class to manager GPU normal maps.
NormalMode
Normal generation mode.
Base module class, Override it for create different ways of create water noise.
virtual ~Module()
Destructor.
virtual void update(const Ogre::Real &timeSinceLastFrame)
Call it each frame.
virtual void remove()
Remove.
bool mCreated
Is create() called?
virtual void create()
Create.
Noise::Noise * mNoise
Noise generator pointer.
virtual void saveCfg(Ogre::String &Data)
Save config.
Ogre::String mName
Module name.
const MaterialManager::NormalMode & getNormalMode() const
Get the normal generation mode.
virtual bool loadCfg(Ogre::ConfigFile &CfgFile)
Load config.
virtual float getHeigth(const Ogre::Vector2 &Position)
Get the current heigth at a especified world-space point.
void setNoise(Noise::Noise *Noise, GPUNormalMapManager *g=0, const bool &DeleteOldNoise=true)
Set noise.
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 bool createGPUNormalMapResources(GPUNormalMapManager *g)
Create GPUNormalMap resources.
virtual void update(const Ogre::Real &timeSinceLastFrame)=0
Call it each frame.
virtual void removeGPUNormalMapResources(GPUNormalMapManager *g)
Remove GPUNormalMap resources.
virtual void create()
Create.
const bool & isCreated() const
Is created() called?
Base Hydrax mesh options.