From 6ef220cd32da62aa2c1a0256f3f6e531fafabbe5 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Sat, 9 Mar 2024 13:16:09 -0500 Subject: [PATCH] Update docs --- include/Model.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/Model.hpp b/include/Model.hpp index d82be53b..65fbcfe1 100644 --- a/include/Model.hpp +++ b/include/Model.hpp @@ -44,9 +44,9 @@ class Model : public ::Model { } /* - * Load a model from a mesh. + * Overloaded constructor to catch when passing in a `raylib::Mesh`. It expects a `raylib::MeshUnmanaged or `::Mesh`. * - * @throws raylib::RaylibException Throws if failed to load the Modal. + * @throws raylib::RaylibException Since the model takes ownership of the Mesh, a `::Mesh` or `raylib::UnmanagedMesh` is required here. */ Model(const raylib::Mesh& mesh) { throw raylib::RaylibException("Model(mesh) constructor expects a ::Mesh or raylib::MeshUnmanaged, as it takes ownership of the Mesh itself.");