25#ifndef _Hydrax_Module_H_
26#define _Hydrax_Module_H_
41namespace Hydrax{
namespace Module
55 Module(
const Ogre::String &Name,
84 virtual void update(
const Ogre::Real &timeSinceLastFrame);
89 virtual void saveCfg(Ogre::String &Data);
94 virtual bool loadCfg(Ogre::ConfigFile &CfgFile);
99 inline const Ogre::String&
getName()
const
150 virtual float getHeigth(
const Ogre::Vector2 &Position);
Central state/object manager and communications hub.
Class to manager GPU normal maps.
NormalMode
Normal generation mode.
Class wich contains all funtions/variables related to Hydrax water mesh.
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?
const Ogre::String & getName() const
Get module name.
virtual void create()
Create.
Noise::Noise * getNoise()
Get the Hydrax::Noise module pointer.
const bool & isCreated() const
Is created() called?
Noise::Noise * mNoise
Noise generator pointer.
MaterialManager::NormalMode mNormalMode
Normal map generation mode.
virtual void saveCfg(Ogre::String &Data)
Save config.
Mesh::Options mMeshOptions
Module mesh options.
Ogre::String mName
Module name.
const MaterialManager::NormalMode & getNormalMode() const
Get the normal generation mode.
virtual const bool _createGeometry(Mesh *mMesh) const
Create geometry in module(If special geometry is needed)
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.
const Mesh::Options & getMeshOptions() const
Get the mesh options for this module.
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.
Base Hydrax mesh options.