Documentation
















  Site Hosted by:

SourceForge.net Logo


Support This Project


ad::AnimCacher Class Reference

Loads and caches an animation. More...

#include <animation.h>

Collaboration diagram for ad::AnimCacher:

Collaboration graph
[legend]
List of all members.

Public Member Functions

AnimGetAnim (std::string filename)
 returns instance of loaded ada file, or loads it if it isn't already.

Static Public Member Functions

static AnimCacherinstance ()
 get the instance of the singlton.
static void release ()
 release the instance of the singleton.

Detailed Description

Loads and caches an animation.

Loads an animation and keeps track of the instances of previously loaded animations. This is a singleton, use AnimCacher::instance() to use it.

See also:
ad::Anim, ad::AnimPlayer


Member Function Documentation

Anim * ad::AnimCacher::GetAnim std::string  filename  ) 
 

returns instance of loaded ada file, or loads it if it isn't already.

Load the animation from a file and return a pointer to the loaded Anim. If the file is already loaded return the pointer to the loaded Anim.

AnimCacher * ad::AnimCacher::instance  )  [static]
 

get the instance of the singlton.

The first time the instance is aquired the instance is created and remains until the the instance is explicitly released with AnimCacher::release()


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

© Copyright 2005 John Butterfield.
All Rights Reserved.