mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-20 21:35:12 +00:00
model: add unload method
This commit is contained in:
@@ -19,7 +19,7 @@ RAY::Model::Model(const Mesh &mesh):
|
||||
|
||||
RAY::Model::~Model()
|
||||
{
|
||||
UnloadModel(this->_model);
|
||||
this->unload();
|
||||
}
|
||||
|
||||
bool RAY::Model::load(const std::string &filename)
|
||||
@@ -34,6 +34,12 @@ bool RAY::Model::load(const Mesh &mesh)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool RAY::Model::unload()
|
||||
{
|
||||
UnloadModel(this->_model);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool RAY::Model::unloadKeepMeshes()
|
||||
{
|
||||
UnloadModelKeepMeshes(_model);
|
||||
|
||||
Reference in New Issue
Block a user