#include <CCMesh.h>
Public Member Functions | |
Mesh * | getMesh (const std::string &key) const |
get mesh from cache More... | |
bool | addMesh (const std::string &key, Mesh *mesh) |
add mesh to cache More... | |
void | removeAllMeshes () |
remove all meshes More... | |
void | removeUnusedMesh () |
remove unused meshes More... | |
void | listenRendererRecreated (EventCustom *event) |
~MeshCache () |
Static Public Member Functions | |
static MeshCache * | getInstance () |
get & destroy More... | |
static void | destroyInstance () |
Public Attributes | |
CC_CONSTRUCTOR_ACCESS | __pad0__: MeshCache() |
Protected Attributes | |
std::unordered_map < std::string, Mesh * > | _meshes |
EventListenerCustom * | _rendererRecreatedListener |
Static Protected Attributes | |
static MeshCache * | _cacheInstance |
Mesh Cache.
~MeshCache | ( | ) |
bool addMesh | ( | const std::string & | key, |
Mesh * | mesh | ||
) |
add mesh to cache
|
static |
|
static |
get & destroy
Mesh* getMesh | ( | const std::string & | key | ) | const |
get mesh from cache
void listenRendererRecreated | ( | EventCustom * | event | ) |
void removeAllMeshes | ( | ) |
remove all meshes
void removeUnusedMesh | ( | ) |
remove unused meshes
CC_CONSTRUCTOR_ACCESS __pad0__ |
|
staticprotected |
|
protected |
|
protected |