cocos2d-x  3.2
 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

Animation3DgetAnimation (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 Animation3DCachegetInstance ()
 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

Detailed Description

Animation3D Cache.

Constructor & Destructor Documentation

Animation3DCache ( )
protected
var Animation3DCache ( )
protected
local Animation3DCache ( )
protected
~Animation3DCache ( )
protected
var ~Animation3DCache ( )
protected
local ~Animation3DCache ( )
protected

Member Function Documentation

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 void destroyInstance ( )
static
var destroyInstance ( )
static
local destroyInstance ( )
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 Animation3DCache*
getInstance
( )
static

get and destroy instance

var getInstance ( )
static

get and destroy instance

local getInstance ( )
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

Member Data Documentation

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

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