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

MeshSkinData Cache. More...

#include <CCMeshSkin.h>

Public Member Functions

const SkinDatagetMeshSkinData (const std::string &key) const
 get mesh skin data from cache More...
 
bool addMeshSkinData (const std::string &key, const SkinData &skinData)
 add mesh skin data to cache More...
 
void removeAllMeshSkinData ()
 remove all mesh skin data More...
 

Static Public Member Functions

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

Protected Member Functions

 MeshSkinDataCache ()
 ~MeshSkinDataCache ()

Protected Attributes

std::unordered_map
< std::string, SkinData
_skinDatas

Static Protected Attributes

static MeshSkinDataCache_cacheInstance

Detailed Description

MeshSkinData Cache.

Constructor & Destructor Documentation

MeshSkinDataCache ( )
protected
~MeshSkinDataCache ( )
protected

Member Function Documentation

bool addMeshSkinData ( const std::string &  key,
const SkinData skinData 
)

add mesh skin data to cache

static void destroyInstance ( )
static
static MeshSkinDataCache*
getInstance
( )
static

get & destroy

const SkinData* getMeshSkinData ( const std::string &  key) const

get mesh skin data from cache

void removeAllMeshSkinData ( )

remove all mesh skin data

Member Data Documentation

MeshSkinDataCache* _cacheInstance
staticprotected
std::unordered_map<std::string,
SkinData> _skinDatas
protected

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