⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.

Axmol Engine 3.0.0-dff292a
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.

@lua NA


The documentation for this class was generated from the following file:
  • MeshMaterial.h