cocos2d-x  3.3rc0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Animation3DCache Class Reference

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

Detailed Description

Animation3D Cache.

Constructor & Destructor Documentation

Animation3DCache ( )
protected
~Animation3DCache ( )
protected

Member Function Documentation

void addAnimation ( const std::string &  key,
Animation3D *  animation 
)

add animation to cache

static void destroyInstance ( )
static
Animation3D* getAnimation ( const std::string &  key)

get animation by key

static Animation3DCache*
getInstance
( )
static

get and destroy instance

void removeAllAnimations ( )

remove all animation

void removeUnusedAnimation ( )

remove unused animation

Member Data Documentation

std::unordered_map<std::string,
Animation3D*> _animations
protected
Animation3DCache* _cacheInstance
staticprotected

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