Hydrax radial grid module.
More...
#include <RadialGrid.h>
|
| | RadialGrid (Hydrax *h, Noise::Noise *n, const MaterialManager::NormalMode &NormalMode) |
| | Constructor. More...
|
| |
| | RadialGrid (Hydrax *h, Noise::Noise *n, const MaterialManager::NormalMode &NormalMode, const Options &Options) |
| | Constructor. More...
|
| |
| | ~RadialGrid () |
| | Destructor. More...
|
| |
| void | create () |
| | Create. More...
|
| |
| void | remove () |
| | Remove. More...
|
| |
| void | update (const Ogre::Real &timeSinceLastFrame) |
| | Call it each frame. More...
|
| |
| void | setOptions (const Options &Options) |
| | Set options. More...
|
| |
| void | saveCfg (Ogre::String &Data) |
| | Save config. More...
|
| |
| bool | loadCfg (Ogre::ConfigFile &CfgFile) |
| | Load config. More...
|
| |
| float | getHeigth (const Ogre::Vector2 &Position) |
| | Get the current heigth at a especified world-space point. More...
|
| |
| const Options & | getOptions () const |
| | Get current options. More...
|
| |
| const bool | _createGeometry (Mesh *mMesh) const |
| | Create geometry in module(If special geometry is needed) More...
|
| |
| | Module (const Ogre::String &Name, Noise::Noise *n, const Mesh::Options &MeshOptions, const MaterialManager::NormalMode &NormalMode) |
| | Constructor. More...
|
| |
| virtual | ~Module () |
| | Destructor. More...
|
| |
| void | setNoise (Noise::Noise *Noise, GPUNormalMapManager *g=0, const bool &DeleteOldNoise=true) |
| | Set noise. More...
|
| |
| const Ogre::String & | getName () const |
| | Get module name. More...
|
| |
| const bool & | isCreated () const |
| | Is created() called? More...
|
| |
| const MaterialManager::NormalMode & | getNormalMode () const |
| | Get the normal generation mode. More...
|
| |
| const Mesh::Options & | getMeshOptions () const |
| | Get the mesh options for this module. More...
|
| |
| Noise::Noise * | getNoise () |
| | Get the Hydrax::Noise module pointer. More...
|
| |
Hydrax radial grid module.
Definition at line 44 of file RadialGrid.h.
◆ RadialGrid() [1/2]
◆ RadialGrid() [2/2]
◆ ~RadialGrid()
| Hydrax::Module::RadialGrid::~RadialGrid |
( |
| ) |
|
◆ _calculeNormals()
| void Hydrax::Module::RadialGrid::_calculeNormals |
( |
| ) |
|
|
private |
◆ _createGeometry()
| const bool Hydrax::Module::RadialGrid::_createGeometry |
( |
Mesh * |
mMesh | ) |
const |
|
virtual |
◆ _performChoppyWaves()
| void Hydrax::Module::RadialGrid::_performChoppyWaves |
( |
| ) |
|
|
private |
◆ create()
| void Hydrax::Module::RadialGrid::create |
( |
| ) |
|
|
virtual |
◆ getHeigth()
| float Hydrax::Module::RadialGrid::getHeigth |
( |
const Ogre::Vector2 & |
Position | ) |
|
|
virtual |
Get the current heigth at a especified world-space point.
- Parameters
-
| Position | X/Z World position |
- Returns
- Heigth at the given position in y-World coordinates, if it's outside of the water return -1
Reimplemented from Hydrax::Module::Module.
Definition at line 665 of file RadialGrid.cpp.
◆ getOptions()
| const Options& Hydrax::Module::RadialGrid::getOptions |
( |
| ) |
const |
|
inline |
Get current options.
- Returns
- Current options
Definition at line 201 of file RadialGrid.h.
◆ loadCfg()
| bool Hydrax::Module::RadialGrid::loadCfg |
( |
Ogre::ConfigFile & |
CfgFile | ) |
|
|
virtual |
◆ remove()
| void Hydrax::Module::RadialGrid::remove |
( |
| ) |
|
|
virtual |
◆ saveCfg()
| void Hydrax::Module::RadialGrid::saveCfg |
( |
Ogre::String & |
Data | ) |
|
|
virtual |
◆ setOptions()
| void Hydrax::Module::RadialGrid::setOptions |
( |
const Options & |
Options | ) |
|
◆ update()
| void Hydrax::Module::RadialGrid::update |
( |
const Ogre::Real & |
timeSinceLastFrame | ) |
|
|
virtual |
◆ mHydrax
| Hydrax* Hydrax::Module::RadialGrid::mHydrax |
|
private |
◆ mOptions
| Options Hydrax::Module::RadialGrid::mOptions |
|
private |
◆ mVertices
| void* Hydrax::Module::RadialGrid::mVertices |
|
private |
◆ mVerticesChoppyBuffer
Use it to store vertex positions when choppy displacement is enabled.
Definition at line 225 of file RadialGrid.h.
The documentation for this class was generated from the following files: