cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Sprite3DCache Class Reference

#include <CCSprite3D.h>

Classes

struct  Sprite3DData
 

Public Member Functions

Sprite3DDatagetSpriteData (const std::string &key) const
bool addSprite3DData (const std::string &key, Sprite3DData *spritedata)
void removeSprite3DData (const std::string &key)
void removeAllSprite3DData ()
 ~Sprite3DCache ()

Static Public Member Functions

static Sprite3DCachegetInstance ()
 get & destroy More...
 
static void destroyInstance ()

Public Attributes

CC_CONSTRUCTOR_ACCESS __pad0__: Sprite3DCache()

Protected Attributes

std::unordered_map
< std::string, Sprite3DData * > 
_spriteDatas

Static Protected Attributes

static Sprite3DCache_cacheInstance

Constructor & Destructor Documentation

Member Function Documentation

bool addSprite3DData ( const std::string &  key,
Sprite3DData spritedata 
)
static void destroyInstance ( )
static
static Sprite3DCache* getInstance ( )
static

get & destroy

Sprite3DData* getSpriteData ( const std::string &  key) const
void removeAllSprite3DData ( )
void removeSprite3DData ( const std::string &  key)

Member Data Documentation

Sprite3DCache* _cacheInstance
staticprotected
std::unordered_map<std::string,
Sprite3DData*> _spriteDatas
protected

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