Animation Resource Manager. More...
#include <deAnimationManager.h>
Public Member Functions | |
Constructors and Destructors | |
| deAnimationManager (deEngine *engine) | |
| Creates a new animation resource manager linked to the given engine. | |
| ~deAnimationManager () | |
| Cleans up the animation resource manager and reports leaking resources. | |
Management | |
| int | GetAnimationCount () const |
| Retrieves the count of animation resource. | |
| deAnimation * | GetAnimationAt (int index) const |
| Retrieves the animation at the given index. | |
| deAnimation * | GetAnimationWith (const char *filename) const |
| Retrieves the animation with the given filename or NULL if not loaded yet. | |
| deAnimation * | CreateAnimation (const char *filename, deAnimationBuilder &builder) |
| Creates a new animation object using a builder. | |
| deAnimation * | LoadAnimation (const char *filename, const char *basePath) |
| Loads an animation from the given file relative to the given base path. | |
| void | AddLoadedAnimation (deAnimation *animation) |
| Adds a loaded and fully prepared animation. | |
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. | |
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. | |
Animation Resource Manager.
| deAnimationManager::deAnimationManager | ( | deEngine * | engine ) |
Creates a new animation resource manager linked to the given engine.
| deAnimationManager::~deAnimationManager | ( | ) |
Cleans up the animation resource manager and reports leaking resources.
| void deAnimationManager::AddLoadedAnimation | ( | deAnimation * | animation ) |
Adds a loaded and fully prepared animation.
This method is to be used only by the resource loader to add an animation that has been loaded asynchronously.
| deAnimation* deAnimationManager::CreateAnimation | ( | const char * | filename, |
| deAnimationBuilder & | builder | ||
| ) |
Creates a new animation object using a builder.
| deAnimation* deAnimationManager::GetAnimationAt | ( | int | index ) | const |
Retrieves the animation at the given index.
| int deAnimationManager::GetAnimationCount | ( | ) | const |
Retrieves the count of animation resource.
| deAnimation* deAnimationManager::GetAnimationWith | ( | const char * | filename ) | const |
Retrieves the animation with the given filename or NULL if not loaded yet.
| deAnimation* deAnimationManager::LoadAnimation | ( | const char * | filename, |
| const char * | basePath | ||
| ) |
Loads an animation from the given file relative to the given base path.
| void deAnimationManager::RemoveResource | ( | deResource * | resource ) | [virtual] |
Removes the given resource from the manager without freeing it.
Implements deResourceManager.
| void deAnimationManager::SystemGraphicLoad | ( | ) | [virtual] |
Graphic System Peers of all stored resources have to be created.
Reimplemented from deResourceManager.
| void deAnimationManager::SystemGraphicUnload | ( | ) | [virtual] |
Graphic System Peers of all stored resources have to be freed.
Reimplemented from deResourceManager.
1.7.2