Cocos2d-x  v3.17
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Sprite3DMaterialCache Class Reference

the sprite3D material is only texture for now More...

Public Member Functions

bool addSprite3DMaterial (const std::string &key, Texture2D *tex)
 add to cache
 
Texture2DgetSprite3DMaterial (const std::string &key)
 get material from cache
 
void removeAllSprite3DMaterial ()
 remove all spritematerial
 
void removeUnusedSprite3DMaterial ()
 remove unused spritematerial
 

Static Public Member Functions

static Sprite3DMaterialCachegetInstance ()
 get & destroy cache
 
static void destroyInstance ()
 destroy the instance
 

Detailed Description

the sprite3D material is only texture for now


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