Skin Resource Manager. More...
#include <deSkinManager.h>
Public Member Functions | |
| void | pLoadImages (deSkin *skin) |
Constructors and Destructors | |
| deSkinManager (deEngine *engine) | |
| Creates a new skin resource manager linked to the given engine. | |
| ~deSkinManager () | |
| Cleans up the skin resource manager and reports leaking resources. | |
Management | |
| int | GetSkinCount () const |
| Retrieves the count of skins. | |
| deSkin * | GetSkinAt (int index) const |
| Retrieves the skin at the given index. | |
| deSkin * | GetSkinWith (const char *filename) const |
| Retrieves the skin with the given filename or NULL if not loaded yet. | |
| deSkin * | CreateSkin (const char *filename, deSkinBuilder &builder) |
| Creates a new skin. | |
| deSkin * | LoadSkin (const char *filename, const char *basePath) |
| Loads a skinfrom the given file relative to the given base path. | |
| deSkin * | LoadDefault () |
| Loads the default skin. | |
| void | AddLoadedSkin (deSkin *skin) |
| Adds a loaded and fully prepared skin. | |
System Peer Management | |
| void | SystemGraphicLoad () |
| Graphic System Peers of all stored resources have to be created. | |
| void | SystemGraphicUnload () |
| Graphic System Peers of all stored resources have to be freed. | |
| void | SystemAudioLoad () |
| Audio System Peers of all stored resources have to be created. | |
| void | SystemAudioUnload () |
| Audio System Peers of all stored resources have to be freed. | |
| void | SystemPhysicsLoad () |
| Physics System Peers of all stored resources have to be created. | |
| void | SystemPhysicsUnload () |
| Physics System Peers of all stored resources have to be freed. | |
Resource only Functions | |
Those functions are only for resource objects and should never be called directly from an application. | |
| void | RemoveResource (deResource *resource) |
| Removes the given resource from the manager without freeing it. | |
Skin Resource Manager.
| deSkinManager::deSkinManager | ( | deEngine * | engine ) |
Creates a new skin resource manager linked to the given engine.
| deSkinManager::~deSkinManager | ( | ) |
Cleans up the skin resource manager and reports leaking resources.
| void deSkinManager::AddLoadedSkin | ( | deSkin * | skin ) |
Adds a loaded and fully prepared skin.
This method is to be used only by the resource loader to add an skin that has been loaded asynchronously.
| deSkin* deSkinManager::CreateSkin | ( | const char * | filename, |
| deSkinBuilder & | builder | ||
| ) |
Creates a new skin.
| deSkin* deSkinManager::GetSkinAt | ( | int | index ) | const |
Retrieves the skin at the given index.
| int deSkinManager::GetSkinCount | ( | ) | const |
Retrieves the count of skins.
| deSkin* deSkinManager::GetSkinWith | ( | const char * | filename ) | const |
Retrieves the skin with the given filename or NULL if not loaded yet.
| deSkin* deSkinManager::LoadDefault | ( | ) |
Loads the default skin.
| deSkin* deSkinManager::LoadSkin | ( | const char * | filename, |
| const char * | basePath | ||
| ) |
Loads a skinfrom the given file relative to the given base path.
| void deSkinManager::pLoadImages | ( | deSkin * | skin ) |
| void deSkinManager::RemoveResource | ( | deResource * | resource ) | [virtual] |
Removes the given resource from the manager without freeing it.
Implements deResourceManager.
| void deSkinManager::SystemAudioLoad | ( | ) | [virtual] |
Audio System Peers of all stored resources have to be created.
Reimplemented from deResourceManager.
| void deSkinManager::SystemAudioUnload | ( | ) | [virtual] |
Audio System Peers of all stored resources have to be freed.
Reimplemented from deResourceManager.
| void deSkinManager::SystemGraphicLoad | ( | ) | [virtual] |
Graphic System Peers of all stored resources have to be created.
Reimplemented from deResourceManager.
| void deSkinManager::SystemGraphicUnload | ( | ) | [virtual] |
Graphic System Peers of all stored resources have to be freed.
Reimplemented from deResourceManager.
| void deSkinManager::SystemPhysicsLoad | ( | ) | [virtual] |
Physics System Peers of all stored resources have to be created.
Reimplemented from deResourceManager.
| void deSkinManager::SystemPhysicsUnload | ( | ) | [virtual] |
Physics System Peers of all stored resources have to be freed.
Reimplemented from deResourceManager.
1.7.2