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