Public Methods |
| | SDLTextureManager () |
| virtual | ~SDLTextureManager () |
| virtual Resource * | create (const String &name) |
| | Creates a SDLTexture resource. More...
|
| virtual Texture * | createAsRenderTarget (const String &name) |
| | Note that this function is not yet implemented. More...
|
| virtual Texture * | createManual (const String &name, uint width, uint height, uint num_mips, PixelFormat format, TextureUsage usage) |
| void | unloadAndDestroyAll () |
| | Unloads & destroys textures. More...
|
| virtual Texture * | load (const String &name, int numMipMaps=-1, Real gamma=1.0f, int priority=1) |
| | Loads a texture from a file. More...
|
| virtual void | load (Resource *res, int priority=1) |
| | @copydoc ResourceManager::load. More...
|
| virtual Texture * | loadImage (const String &name, const Image &img, int iNumMipMaps=-1, Real gamma=1.0f, int priority=1) |
| virtual void | unload (String filename) |
| | Manually unloads a texture from the loaded set. More...
|
| virtual void | unload (Resource *res) |
| | Unloads a Resource from the managed resources list, calling it's unload() method. More...
|
| virtual void | enable32BitTextures (bool setting=true) |
| | Enables / disables 32-bit textures. More...
|
| virtual void | setDefaultNumMipMaps (int num) |
| | Sets the default number of mipmaps to be used for loaded textures, for when textures are loaded automatically (e.g. More...
|
| virtual int | getDefaultNumMipMaps () |
| | Sets the default number of mipmaps to be used for loaded textures. More...
|
| virtual void | setMemoryBudget (size_t bytes) |
| | Set a limit on the amount of memory this resource handler may use. More...
|
| virtual Resource * | getByName (const String &name) |
| | Retrieves a pointer to a resource by name. More...
|
| void | addSearchPath (const String &path) |
| | Adds a relative path to search for resources of this type. More...
|
| void | addArchiveEx (const String &strName, const String &strDriverName) |
| | Adds an archive to the search path for this type of resource. More...
|
| bool | _findResourceData (const String &filename, DataChunk &refChunk) |
| | Internal method, used for locating resource data in the file system / archives. More...
|
Static Public Methods |
| TextureManager & | getSingleton (void) |
| | Override standard Singleton retrieval. More...
|
| void | addCommonSearchPath (const String &path) |
| | Adds a relative search path for resources of ALL types. More...
|
| void | addCommonArchiveEx (const String &strName, const String &strDriverName) |
| | Adds an archive to the search path for all resources. More...
|
| std::set< String > | _getAllCommonNamesLike (const String &startPath, const String &extension) |
| | Returns a collection of files with the given extension in the common resource paths. More...
|
| bool | _findCommonResourceData (const String &filename, DataChunk &refChunk) |
| | Internal method, used for locating common resource data in the file system / archives. More...
|
| TextureManager * | getSingletonPtr (void) |
Protected Types |
typedef HashMap< String, ArchiveEx *,
_StringHash > | FileMap |
Protected Methods |
| void | checkUsage (void) |
| | Checks memory usage and pages out if required. More...
|
Protected Attributes |
| bool | mIs32Bit |
| int | mDefaultNumMipMaps |
| FileMap | mArchiveFiles |
| ResourceMap | mResources |
| size_t | mMemoryBudget |
| size_t | mMemoryUsage |
| std::vector< ArchiveEx * > | mVFS |
| | Collection of searchable ArchiveEx classes (virtual file system) for this resource type. More...
|
Static Protected Attributes |
| FileMap | mCommonArchiveFiles |
| std::vector< ArchiveEx * > | mCommonVFS |
| | Collection of searchable ArchiveEx classes (virtual file system) for all resource types. More...
|
| TextureManager * | ms_Singleton = 0 |