Class for manager Normal maps.
More...
#include <TextureManager.h>
Class for manager Normal maps.
Definition at line 45 of file TextureManager.h.
◆ TexturesID
◆ TextureManager()
Hydrax::TextureManager::TextureManager |
( |
Hydrax * |
h | ) |
|
◆ ~TextureManager()
Hydrax::TextureManager::~TextureManager |
( |
| ) |
|
◆ _createTexture()
bool Hydrax::TextureManager::_createTexture |
( |
Ogre::TexturePtr & |
Texture, |
|
|
const Ogre::String & |
Name, |
|
|
const Size & |
Size |
|
) |
| |
|
private |
Create an Ogre::Texture.
- Parameters
-
Texture | Our Ogre::TexturePtr |
Name | Texture's name |
Size | Texture's size |
- Returns
- false if there is a problem.
Definition at line 131 of file TextureManager.cpp.
◆ _getTexture()
Ogre::TexturePtr Hydrax::TextureManager::_getTexture |
( |
const Ogre::String & |
Name | ) |
|
|
private |
Get an Ogre::TexturePtr.
- Parameters
-
- Returns
- Our texture
◆ _updateNormalMap()
bool Hydrax::TextureManager::_updateNormalMap |
( |
Image & |
Image | ) |
|
|
private |
Update normal map.
- Parameters
-
- Returns
- false if something fails
Definition at line 78 of file TextureManager.cpp.
◆ create()
void Hydrax::TextureManager::create |
( |
const Size & |
Size | ) |
|
◆ getTexture()
Ogre::TexturePtr& Hydrax::TextureManager::getTexture |
( |
const TexturesID & |
Id | ) |
|
|
inline |
Get texture.
- Parameters
-
Id | Texture Id ( TEX_NORMAL_ID ) |
- Returns
- Ogre::TexturePtr
Definition at line 96 of file TextureManager.h.
◆ getTextureName()
const Ogre::String& Hydrax::TextureManager::getTextureName |
( |
const TexturesID & |
Id | ) |
const |
|
inline |
Get texture's name.
- Parameters
-
Id | Texture Id ( TEX_NORMAL_ID ) |
- Returns
- Texture's name
Definition at line 105 of file TextureManager.h.
◆ remove()
void Hydrax::TextureManager::remove |
( |
| ) |
|
◆ update()
bool Hydrax::TextureManager::update |
( |
const TexturesID & |
Id, |
|
|
Image & |
Image |
|
) |
| |
|
inline |
Update.
- Parameters
-
Id | Texture's ID |
Image | Update image |
- Returns
- false if something fails
Definition at line 82 of file TextureManager.h.
◆ mCreated
bool Hydrax::TextureManager::mCreated |
|
private |
◆ mHydrax
Hydrax* Hydrax::TextureManager::mHydrax |
|
private |
◆ mTextureNames
Ogre::String Hydrax::TextureManager::mTextureNames[1] |
|
private |
Our Ogre::String array for store texture's names.
Definition at line 135 of file TextureManager.h.
◆ mTextures
Ogre::TexturePtr Hydrax::TextureManager::mTextures[1] |
|
private |
The documentation for this class was generated from the following files: