25#ifndef _Hydrax_DecalsManager_H_
26#define _Hydrax_DecalsManager_H_
50 Decal(
Hydrax *h,
const Ogre::String &TextureName,
const int& Id);
223 Decal*
add(
const Ogre::String& TextureName);
234 void remove(
const int& Id);
const int & getId() const
Get the decal Id.
Ogre::Frustum * mProjector
Decal projector.
const Ogre::Vector2 & getSize() const
Get decal size.
Ogre::Pass * getRegisteredPass()
Get the pass the decal is in.
Ogre::Real mTransparency
Transparency.
bool mVisible
Is decal visible?
Ogre::Vector2 mPosition
Position.
const bool & isVisible() const
Is decal visile?
Ogre::SceneNode * getSceneNode()
Get the decal scene node.
void setPosition(const Ogre::Vector2 &Position)
Set decal position.
void setVisible(const bool &Visible)
Set decal visibile or not.
void setOrientation(const Ogre::Radian &Orientation)
Set decal orientation.
Ogre::Pass * mRegisteredPass
Registered pass.
const Ogre::Vector2 & getPosition() const
Get decal position.
const Ogre::String & getTextureName() const
Get decal texture name.
Ogre::Radian mOrientation
Orientation.
void registerPass(Ogre::Pass *_Pass)
Register the decal int the specified pass.
const Ogre::Radian & getOrientation() const
Get decal orientation.
Hydrax * mHydrax
Hydrax parent pointer.
Ogre::String mTextureName
Decal texture name.
void unregister()
Unregister from current technique.
Ogre::SceneNode * mSceneNode
Decal scene node.
void setTransparency(const Ogre::Real &Transparency)
Set decal transparency.
Ogre::Frustum * getProjector()
Get the decal projector.
void setSize(const Ogre::Vector2 &Size)
Set decal size.
const Ogre::Real & getTransparency() const
Get decal transparency.
std::vector< Decal * > getDecals()
Get decals std::vector.
void remove(const int &Id)
Remove decal.
Ogre::Real mWaterStrength
Water strength (For decals culling)
Ogre::Quaternion mLastOrientation
void update()
Update decal manager.
Ogre::Vector3 mLastPosition
Last camera position, orientation, underwater.
Decal * get(const int &Id)
Get decal.
Decal * add(const Ogre::String &TextureName)
Add decal.
void _setWaterStrength(const Ogre::Real &WaterStrength)
Set water strength (used for decals culling)
Hydrax * mHydrax
Hydrax parent pointer.
const Ogre::Real _getWaterStrength() const
Get water strength (used for decals culling)
void removeAll()
Remove all decals.
void registerAll()
Register all decals.
void _forceToUpdate()
Call to force to update decals.
std::vector< Decal * > mDecals
Decals std::vector.
~DecalsManager()
Destructor.
std::vector< Decal * >::iterator DecalIt
Decal iterator.
Struct wich contains an especific width and height value.