Cocos2d-x  v3.10
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups
Animation3DCache Class Reference

Animation3DCache, used to caching Animation3D objects. More...

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.
 
void removeUnusedAnimation ()
 Remove unused animation.
 
var removeUnusedAnimation ()
 Remove unused animation.
 
local removeUnusedAnimation ()
 Remove unused animation.
 

Static Public Member Functions

static Animation3DCachegetInstance ()
 Get the instance. More...
 
local getInstance ()
 Get the instance. More...
 
static void destroyInstance ()
 Destroy the instance.
 
var destroyInstance ()
 Destroy the instance.
 
local destroyInstance ()
 Destroy the instance.
 

Detailed Description

Animation3DCache, used to caching Animation3D objects.

Cache of the Animation3D

Member Function Documentation

static Animation3DCache*
getInstance
( )
static

Get the instance.

Animation3DCache the instance

var getInstance ( )
static

Get the instance.

Animation3DCache the instance

local getInstance ( )
static

Get the instance.

Animation3DCache the instance

Animation3D* getAnimation ( const std::string &  key)

Get animation by key.

The key string. The Animation3D object.

var getAnimation ( var  key)

Get animation by key.

The key string. The Animation3D object.

local getAnimation ( local  key)

Get animation by key.

The key string. The Animation3D object.

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

Add animation to cache.

The key string The specified animation

var addAnimation ( var  key,
var  animation 
)

Add animation to cache.

The key string The specified animation

local addAnimation ( local  key,
local  animation 
)

Add animation to cache.

The key string The specified animation


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