MCPcopy Create free account
hub / github.com/RobLoach/raylib-cpp / Load

Method Load

include/ModelUnmanaged.hpp:71–76  ·  view source on GitHub ↗

* Loads a Model from the given file. * * @throws raylib::RaylibException Throws if failed to load the Model. */

Source from the content-addressed store, hash-verified

69 * @throws raylib::RaylibException Throws if failed to load the Model.
70 */
71 void Load(const std::string& fileName) {
72 set(::LoadModel(fileName.c_str()));
73 if (!IsValid()) {
74 throw RaylibException("Failed to load Model from " + fileName);
75 }
76 }
77
78 /**
79 * Loads a Model from the given Mesh.

Callers

nothing calls this directly

Calls 3

RaylibExceptionClass · 0.85
c_strMethod · 0.80
IsValidFunction · 0.70

Tested by

no test coverage detected