Animation3D Cache. More...
#include <CCAnimation3D.h>
Public Member Functions | |
Animation3D * | getAnimation (const std::string &key) |
get animation by key More... | |
void | addAnimation (const std::string &key, Animation3D *animation) |
add animation to cache More... | |
void | removeAllAnimations () |
remove all animation More... | |
void | removeUnusedAnimation () |
remove unused animation More... | |
Static Public Member Functions | |
static Animation3DCache * | getInstance () |
get and destroy instance More... | |
static void | destroyInstance () |
Protected Member Functions | |
Animation3DCache () | |
~Animation3DCache () |
Protected Attributes | |
std::unordered_map < std::string, Animation3D * > | _animations |
Static Protected Attributes | |
static Animation3DCache * | _cacheInstance |
Animation3D Cache.
|
protected |
|
protected |
void addAnimation | ( | const std::string & | key, |
Animation3D * | animation | ||
) |
add animation to cache
|
static |
Animation3D* getAnimation | ( | const std::string & | key | ) |
get animation by key
|
static |
get and destroy instance
void removeAllAnimations | ( | ) |
remove all animation
void removeUnusedAnimation | ( | ) |
remove unused animation
|
protected |
|
staticprotected |