|
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
33 , mRttManager(h->getRttManager())
68 for (
unsigned int k = 0; k <
mTextures.size(); k++)
70 Ogre::TextureManager::getSingleton().remove(
mTextures.at(k)->getName());
77 Ogre::HighLevelGpuProgramManager::getSingleton().unload(
mNormalMapMaterial->getTechnique(0)->getPass(0)->getVertexProgramName());
78 Ogre::HighLevelGpuProgramManager::getSingleton().unload(
mNormalMapMaterial->getTechnique(0)->getPass(0)->getFragmentProgramName());
79 Ogre::HighLevelGpuProgramManager::getSingleton().remove(
mNormalMapMaterial->getTechnique(0)->getPass(0)->getVertexProgramName());
80 Ogre::HighLevelGpuProgramManager::getSingleton().remove(
mNormalMapMaterial->getTechnique(0)->getPass(0)->getFragmentProgramName());
bool mCreated
Has been create() already called?
void setBitsPerChannel(const RttType &Rtt, const BitsPerChannel &BPC)
Hydrax * mHydrax
Hydrax main pointer.
MaterialManager * getMaterialManager()
Get Hydrax::MaterialManager.
RttManager * mRttManager
Rtt manager pointer.
std::vector< Ogre::TexturePtr > mTextures
The normal map material needs some textures wich will be filled by code.
Ogre::MaterialPtr mNormalMapMaterial
This material must be created in the noise module, in order to be according with the Hydrax modulable...
bool isComponent(const HydraxComponent &Component)
Returns if the especified component is active.
~GPUNormalMapManager()
Destructor.
void reload(const MaterialType &Material)
Reload material.
GPUNormalMapManager(Hydrax *h)
Constructor.
void setNumberOfChannels(const RttType &Rtt, const NumberOfChannels &NOC)
void initialize(const RttType &Rtt)
Initialize a RTT.
@ HYDRAX_COMPONENT_UNDERWATER
void remove(const RttType &Rtt)
Removes a RTT.