|
cocos2d-x
3.3
|
the sprite3D material is only texture for now More...
#include <CCSprite3DMaterial.h>
Public Member Functions | |
| bool | addSprite3DMaterial (const std::string &key, Texture2D *tex) |
| add to cache More... | |
| Texture2D * | getSprite3DMaterial (const std::string &key) |
| get material from cache More... | |
| void | removeAllSprite3DMaterial () |
| remove all spritematerial More... | |
| void | removeUnusedSprite3DMaterial () |
| remove unused spritematerial More... | |
| ~Sprite3DMaterialCache () | |
Static Public Member Functions | |
| static Sprite3DMaterialCache * | getInstance () |
| get & destroy cache More... | |
| static void | destroyInstance () |
Public Attributes | |
| CC_CONSTRUCTOR_ACCESS | __pad0__: Sprite3DMaterialCache() |
Protected Attributes | |
| std::unordered_map < std::string, Texture2D * > | _materials |
Static Protected Attributes | |
| static Sprite3DMaterialCache * | _cacheInstance |
the sprite3D material is only texture for now
| bool addSprite3DMaterial | ( | const std::string & | key, |
| Texture2D * | tex | ||
| ) |
add to cache
|
static |
|
static |
get & destroy cache
| Texture2D* getSprite3DMaterial | ( | const std::string & | key | ) |
get material from cache
| void removeAllSprite3DMaterial | ( | ) |
remove all spritematerial
| void removeUnusedSprite3DMaterial | ( | ) |
remove unused spritematerial
| CC_CONSTRUCTOR_ACCESS __pad0__ |
|
staticprotected |
|
protected |