⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.
|
Axmol Engine 3.0.0-dff292a
|
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.
@lua NA