Cocos2d-x  4.0.0
Public Member Functions | Static Public Member Functions | List of all members
Sprite3DCache Class Reference

Sprite3DCache. More...

Public Member Functions

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

Static Public Member Functions

static Sprite3DCachegetInstance ()
 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

NA

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

add the SpriteData into Sprite3D by given the specified key

NA


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