Cocos2d-x  v3.17
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Sprite3DCache Class Reference

Sprite3DCache. More...

Public Member Functions

Sprite3DData * getSpriteData (const std::string &key) const
 get the SpriteData struct More...
 
bool addSprite3DData (const std::string &key, Sprite3DData *spritedata)
 add the SpriteData into Sprite3D by given the specified key More...
 
var addSprite3DData ( var key, var spritedata)
 add the SpriteData into Sprite3D by given the specified key More...
 
void removeSprite3DData (const std::string &key)
 remove the SpriteData from Sprite3D by given the specified key
 
local removeSprite3DData ( local key)
 remove the SpriteData from Sprite3D by given the specified key
 
void removeAllSprite3DData ()
 remove all the SpriteData from Sprite3D
 
var removeAllSprite3DData ()
 remove all the SpriteData from Sprite3D
 
local removeAllSprite3DData ()
 remove all the SpriteData from Sprite3D
 

Static Public Member Functions

static Sprite3DCachegetInstance ()
 get & destroy
 
var getInstance ()
 get & destroy
 
local getInstance ()
 get & destroy
 

Detailed Description

Sprite3DCache.

the cache data of Sprite3D, use to speed up Sprite3D::create

Member Function Documentation

Sprite3DData* getSpriteData ( const std::string &  key) const

get the SpriteData struct

var getSpriteData ( var  key)

get the SpriteData struct

bool addSprite3DData ( const std::string &  key,
Sprite3DData *  spritedata 
)

add the SpriteData into Sprite3D by given the specified key

var addSprite3DData ( var  key,
var  spritedata 
)

add the SpriteData into Sprite3D by given the specified key


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