diff --git a/include/Model.hpp b/include/Model.hpp index a2e1cf97..d9b7c158 100644 --- a/include/Model.hpp +++ b/include/Model.hpp @@ -43,6 +43,15 @@ class Model : public ::Model { Load(mesh); } + /** + * The Model constructor with a Mesh() is removed. + * + * Use `raylib::MeshUnmanaged` or `::Mesh` instead, as raylib will take ownership of the data. + * + * @see raylib::MeshUnmanaged + */ + Model(const raylib::Mesh& mesh) = delete; + ~Model() { Unload(); }