Cocos2d-x  v3.10
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups
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 the key of material the Texture2D to add Whether or not the operation is successful
 
Texture2DgetSprite3DMaterial (const std::string &key)
 get material from cache the key of material the Texture2D of the given material
 
void removeAllSprite3DMaterial ()
 remove all spritematerial
 
void removeUnusedSprite3DMaterial ()
 remove unused spritematerial
 

Static Public Member Functions

static Sprite3DMaterialCachegetInstance ()
 get & destroy cache the instance of this object
 
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: