Axmol Engine 2.4.0-258ceca
Loading...
Searching...
No Matches
MeshMaterialCache Class Reference

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
 
Texture2DgetMeshMaterial (std::string_view key)
 get material from cache
 
void removeAllMeshMaterial ()
 remove all cached materials
 
void removeUnusedMeshMaterial ()
 remove unused cached materials
 

Detailed Description

MeshMaterialCache: the MeshRenderer material cache, it can only cache textures for now.

@js NA @lua NA


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