#include <texture.h>
Public Member Functions | |
| void | SetImportPath (const std::string &path) |
| Set a relative or absolute path the will be appended to *all* future load calls. | |
| bool | LoadRequiredTextures () |
| Load all the required textures. | |
| bool | UseHighQuality () |
| The texture managers guess: should "high quality" modes be used for rendering? | |
| const Texture * | LoadTexture (const std::string &fileName, const std::string &textureName, int id=0, int flags=0) |
| const Texture * | CreateTexture (SDL_Surface *, const std::string &textureName, int id, int options) |
| const Texture * | CreateTexture (int size, const std::string &textureName, int id, int options) |
| const Texture * | GetTexture (const std::string &textureName, U32 nameId) |
| Query for a texture. | |
| unsigned | TextureMemory () |
| Query the amount of memory commited to texture use. (Approximate). | |
Static Public Member Functions | |
| static TextureManager * | Instance () |
| Query the instance of the TextureManager singleton. | |
| const Texture* lilith3d::TextureManager::LoadTexture | ( | const std::string & | fileName, | |
| const std::string & | textureName, | |||
| int | id = 0, |
|||
| int | flags = 0 | |||
| ) |
Loads a single 2D textures, with all the options.
| fileName | Filename of the texture | |
| textureName | String part of the texture name. | |
| id | Integer part of the name. (Usually 0). | |
| flags | NO_MIPMAP, EMITS_LIGHT |
| const Texture* lilith3d::TextureManager::CreateTexture | ( | SDL_Surface * | , | |
| const std::string & | textureName, | |||
| int | id, | |||
| int | options | |||
| ) |
Creates a texture from an SDL surface.
| const Texture* lilith3d::TextureManager::CreateTexture | ( | int | size, | |
| const std::string & | textureName, | |||
| int | id, | |||
| int | options | |||
| ) |
Creates a texture that will be set from a surface later.
1.5.1-p1