#include <CCMesh.h>
Public Member Functions | |
Mesh * | getMesh (const std::string &key) const |
bool | addMesh (const std::string &key, Mesh *mesh) |
void | removeAllMeshes () |
void | removeUnusedMesh () |
void | listenBackToForeground (EventCustom *event) |
~MeshCache () |
Static Public Member Functions | |
static MeshCache * | getInstance () |
static void | destroyInstance () |
Public Attributes | |
CC_CONSTRUCTOR_ACCESS | __pad0__: MeshCache() |
Protected Attributes | |
std::unordered_map < std::string, Mesh * > | _meshes |
EventListenerCustom * | _backToForegroundlistener |
Static Protected Attributes | |
static MeshCache * | _cacheInstance |
~MeshCache | ( | ) |
bool addMesh | ( | const std::string & | key, |
Mesh * | mesh | ||
) |
|
static |
|
static |
Mesh* getMesh | ( | const std::string & | key | ) | const |
void listenBackToForeground | ( | EventCustom * | event | ) |
void removeAllMeshes | ( | ) |
void removeUnusedMesh | ( | ) |
CC_CONSTRUCTOR_ACCESS __pad0__ |
|
protected |
|
staticprotected |
|
protected |