UnloadMaterial can also optionally free textures and shader.

This commit is contained in:
jussi
2024-09-25 20:54:32 +03:00
parent cd6471d339
commit 45e11be96a
10 changed files with 42 additions and 33 deletions

8
API.md
View File

@@ -2782,7 +2782,7 @@ Default projection matrix near cull distance
---
> RL_CULL_DISTANCE_FAR = 1000.0
> RL_CULL_DISTANCE_FAR = 1000
Default projection matrix far cull distance
@@ -7381,7 +7381,7 @@ Check if a model is ready
> RL.UnloadModel( Model model )
Unload model (including meshes) from memory (RAM and/or VRAM)
Unload model (meshes/materials) from memory (RAM and/or VRAM)
---
@@ -7774,9 +7774,9 @@ Check if a material is ready
---
> RL.UnloadMaterial( Material material )
> RL.UnloadMaterial( Material material, bool freeAll )
Unload material from GPU memory (VRAM)
Unload material from GPU memory (VRAM). Note! Use freeAll to unload shaders and textures
---