deAnimationManager Class Reference

Animation Resource Manager. More...

#include <deAnimationManager.h>

Inheritance diagram for deAnimationManager:
deFileResourceManager deResourceManager

List of all members.

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.
deAnimationGetAnimationAt (int index) const
 Retrieves the animation at the given index.
deAnimationGetAnimationWith (const char *filename) const
 Retrieves the animation with the given filename or NULL if not loaded yet.
deAnimationCreateAnimation (const char *filename, deAnimationBuilder &builder)
 Creates a new animation object using a builder.
deAnimationLoadAnimation (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.

Detailed Description

Animation Resource Manager.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

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.


Member Function Documentation

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.


The documentation for this class was generated from the following file: