Skip to content
Snippets Groups Projects
Commit 564ac394 authored by Trevor Hollmann's avatar Trevor Hollmann
Browse files

[#79] Change order of function arguments for loadMesh.

For consistency the output arguments should always be the last
arguments of a function.
parent a18ad02b
No related branches found
No related tags found
1 merge request!69Resolve "Rework Asset Loader API"
...@@ -234,7 +234,7 @@ int probeScene(const std::filesystem::path &path, Scene &scene); ...@@ -234,7 +234,7 @@ int probeScene(const std::filesystem::path &path, Scene &scene);
/** /**
* TODO document * TODO document
*/ */
int loadMesh(const std::filesystem::path &path, Scene &scene, const std::string &name); int loadMesh(const std::filesystem::path &path, const std::string &name, Scene &scene);
struct TextureData { struct TextureData {
......
...@@ -748,7 +748,7 @@ int probeScene(const std::filesystem::path& path, Scene& scene) { ...@@ -748,7 +748,7 @@ int probeScene(const std::filesystem::path& path, Scene& scene) {
} }
int loadMesh(const std::filesystem::path &path, Scene &scene, const std::string &name) { int loadMesh(const std::filesystem::path &path, const std::string &name, Scene &scene) {
fx::gltf::Document sceneObjects; fx::gltf::Document sceneObjects;
try { try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment