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

[#79] Add missing documentation for loadTexture()

parent 1ba3d40d
No related branches found
No related tags found
1 merge request!69Resolve "Rework Asset Loader API"
...@@ -303,7 +303,13 @@ struct Mesh { ...@@ -303,7 +303,13 @@ struct Mesh {
int loadScene(const std::filesystem::path &path, Scene &scene); int loadScene(const std::filesystem::path &path, Scene &scene);
/** /**
* TODO document * Simply loads a single image at the given path and returns a Texture
* struct describing it. This is for special use cases only (eg.
* loading a font atlas) and not meant to be used for regular assets.
* The sampler is set to -1, signalling that this Texture was loaded
* outside the context of a glTF-file.
*
* @param path must be the path to an image file
*/ */
Texture loadTexture(const std::filesystem::path& path); Texture loadTexture(const std::filesystem::path& path);
} }
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