|
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
25 #ifndef _Hydrax_GPUNormalMapManager_H_
26 #define _Hydrax_GPUNormalMapManager_H_
129 Ogre::TextureManager::getSingleton().remove(
mTextures.at(Index)->getName());
131 std::vector<Ogre::TexturePtr>::iterator TexIt =
mTextures.begin() + Index;
bool mCreated
Has been create() already called?
Ogre::TexturePtr & getTexture(const int &Index)
Get a texture.
const bool & isCreated() const
Has been created() already called?
Ogre::MaterialPtr & getNormalMapMaterial()
Get the normal map material.
Hydrax * mHydrax
Hydrax main pointer.
RttManager * mRttManager
Rtt manager pointer.
std::vector< Ogre::TexturePtr > mTextures
The normal map material needs some textures wich will be filled by code.
void addTexture(Ogre::TexturePtr &Texture)
Create a texture.
Ogre::MaterialPtr mNormalMapMaterial
This material must be created in the noise module, in order to be according with the Hydrax modulable...
Class to manager GPU normal maps.
void removeTexture(const int &Index)
Remove a texture.
~GPUNormalMapManager()
Destructor.
Hydrax * getHydrax()
Get the Hydrax parent pointer.
GPUNormalMapManager(Hydrax *h)
Constructor.
void setActive(const bool &Active)
Set active.
void initialize(const RttType &Rtt)
Initialize a RTT.
void remove(const RttType &Rtt)
Removes a RTT.