model: add unload method

This commit is contained in:
arthur.jamet
2021-05-22 14:20:02 +02:00
parent d9c3772b9e
commit 4da077f796
2 changed files with 10 additions and 1 deletions

View File

@@ -45,6 +45,9 @@ namespace RAY {
//! @brief Load model from mesh (default materials)
bool load(const Mesh &mesh);
//! @brief Unload model (including meshes) from memory (RAM and/or VRAM)
bool unload() override;
//! @brief Unload model (excluding meshes) from memory (RAM and/or VRAM)
bool unloadKeepMeshes();