Cocos2d-x  4.0.0
Public Member Functions | Static Public Member Functions | List of all members
Sprite3DMaterialCache Class Reference

the sprite3D material is only texture for now NA NA 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 NA NA


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