Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
RobLoach authored Mar 9, 2024
1 parent ae8b4d1 commit 6ef220c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/Model.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit 6ef220c

Please sign in to comment.