Axmol Engine 2.4.0-258ceca
|
MeshMaterialCache: the MeshRenderer material cache, it can only cache textures for now. More...
#include <MeshMaterial.h>
Public Member Functions | |
bool | addMeshMaterial (std::string_view key, Texture2D *tex) |
add a material to cache | |
Texture2D * | getMeshMaterial (std::string_view key) |
get material from cache | |
void | removeAllMeshMaterial () |
remove all cached materials | |
void | removeUnusedMeshMaterial () |
remove unused cached materials | |
MeshMaterialCache: the MeshRenderer material cache, it can only cache textures for now.
@js NA @lua NA