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... | |
| var | addSprite3DMaterial ( var key, var tex) |
| add to cache More... | |
| local | addSprite3DMaterial ( local key, local tex) |
| add to cache More... | |
| Texture2D * | getSprite3DMaterial (const std::string &key) |
| get material from cache More... | |
| local | getSprite3DMaterial ( local key) |
| get material from cache More... | |
| void | removeAllSprite3DMaterial () |
| remove all spritematerial More... | |
| void | removeUnusedSprite3DMaterial () |
| remove unused spritematerial More... | |
| var | removeUnusedSprite3DMaterial () |
| remove unused spritematerial More... | |
| local | removeUnusedSprite3DMaterial () |
| remove unused spritematerial More... | |
| ~Sprite3DMaterialCache () | |
| ~Sprite3DMaterialCache () | |
Static Public Member Functions | |
| static Sprite3DMaterialCache * | getInstance () |
| get & destroy cache More... | |
| var | getInstance () |
| get & destroy cache More... | |
| local | getInstance () |
| get & destroy cache More... | |
| static void | destroyInstance () |
| var | destroyInstance () |
| local | destroyInstance () |
Public Attributes | |
| CC_CONSTRUCTOR_ACCESS | __pad0__: Sprite3DMaterialCache() |
| local | __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
| var ~Sprite3DMaterialCache | ( | ) |
| local ~Sprite3DMaterialCache | ( | ) |
| bool addSprite3DMaterial | ( | const std::string & | key, |
| Texture2D * | tex | ||
| ) |
add to cache
| var addSprite3DMaterial | ( | var | key, |
| var | tex | ||
| ) |
add to cache
| local addSprite3DMaterial | ( | local | key, |
| local | tex | ||
| ) |
add to cache
|
static |
|
static |
|
static |
|
static |
get & destroy cache
|
static |
get & destroy cache
|
static |
get & destroy cache
| Texture2D* getSprite3DMaterial | ( | const std::string & | key | ) |
get material from cache
| var getSprite3DMaterial | ( | var | key | ) |
get material from cache
| local getSprite3DMaterial | ( | local | key | ) |
get material from cache
| void removeAllSprite3DMaterial | ( | ) |
remove all spritematerial
| var removeAllSprite3DMaterial | ( | ) |
remove all spritematerial
| local removeAllSprite3DMaterial | ( | ) |
remove all spritematerial
| void removeUnusedSprite3DMaterial | ( | ) |
remove unused spritematerial
| var removeUnusedSprite3DMaterial | ( | ) |
remove unused spritematerial
| local removeUnusedSprite3DMaterial | ( | ) |
remove unused spritematerial
| CC_CONSTRUCTOR_ACCESS __pad0__ |
| var __pad0__ |
| local __pad0__ |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |