RigsofRods
Soft-body Physics Simulation
|
Decals manager class. More...
#include <DecalsManager.h>
Public Member Functions | |
DecalsManager (Hydrax *h) | |
Constructor. More... | |
~DecalsManager () | |
Destructor. More... | |
void | update () |
Update decal manager. More... | |
Decal * | add (const Ogre::String &TextureName) |
Add decal. More... | |
Decal * | get (const int &Id) |
Get decal. More... | |
void | remove (const int &Id) |
Remove decal. More... | |
void | removeAll () |
Remove all decals. More... | |
void | registerAll () |
Register all decals. More... | |
std::vector< Decal * > | getDecals () |
Get decals std::vector. More... | |
const Ogre::Real | _getWaterStrength () const |
Get water strength (used for decals culling) More... | |
void | _setWaterStrength (const Ogre::Real &WaterStrength) |
Set water strength (used for decals culling) More... | |
void | _forceToUpdate () |
Call to force to update decals. More... | |
Private Attributes | |
std::vector< Decal * > | mDecals |
Decals std::vector. More... | |
std::vector< Decal * >::iterator | DecalIt |
Decal iterator. More... | |
int | mNextId |
Next Id. More... | |
Ogre::Real | mWaterStrength |
Water strength (For decals culling) More... | |
Ogre::Vector3 | mLastPosition |
Last camera position, orientation, underwater. More... | |
Ogre::Quaternion | mLastOrientation |
bool | mLastUnderwater |
bool | mForceToUpdate |
Hydrax * | mHydrax |
Hydrax parent pointer. More... | |
Decals manager class.
Use it for place any kind of texture over the water! Like ship trails, overwater vegetables, ...
Definition at line 202 of file DecalsManager.h.
Hydrax::DecalsManager::DecalsManager | ( | Hydrax * | h | ) |
Hydrax::DecalsManager::~DecalsManager | ( | ) |
Destructor.
Definition at line 147 of file DecalsManager.cpp.
|
inline |
Call to force to update decals.
Definition at line 271 of file DecalsManager.h.
|
inline |
Get water strength (used for decals culling)
Definition at line 256 of file DecalsManager.h.
|
inline |
Set water strength (used for decals culling)
WaterStrength | Water strength |
Definition at line 264 of file DecalsManager.h.
Decal * Hydrax::DecalsManager::add | ( | const Ogre::String & | TextureName | ) |
Add decal.
TextureName | Texture name |
Definition at line 248 of file DecalsManager.cpp.
Decal * Hydrax::DecalsManager::get | ( | const int & | Id | ) |
Get decal.
Id | Decal Id |
Definition at line 266 of file DecalsManager.cpp.
|
inline |
Get decals std::vector.
Definition at line 248 of file DecalsManager.h.
void Hydrax::DecalsManager::registerAll | ( | ) |
Register all decals.
Definition at line 305 of file DecalsManager.cpp.
void Hydrax::DecalsManager::remove | ( | const int & | Id | ) |
void Hydrax::DecalsManager::removeAll | ( | ) |
Remove all decals.
Definition at line 293 of file DecalsManager.cpp.
void Hydrax::DecalsManager::update | ( | ) |
Update decal manager.
Definition at line 157 of file DecalsManager.cpp.
|
private |
Decal iterator.
Definition at line 280 of file DecalsManager.h.
|
private |
Decals std::vector.
Definition at line 278 of file DecalsManager.h.
|
private |
Definition at line 291 of file DecalsManager.h.
|
private |
Hydrax parent pointer.
Definition at line 294 of file DecalsManager.h.
|
private |
Definition at line 289 of file DecalsManager.h.
|
private |
Last camera position, orientation, underwater.
Definition at line 288 of file DecalsManager.h.
|
private |
Definition at line 290 of file DecalsManager.h.
|
private |
Next Id.
Definition at line 282 of file DecalsManager.h.
|
private |
Water strength (For decals culling)
Definition at line 285 of file DecalsManager.h.