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

[#79] Update documentation of asset loader.

parent cfe370e8
No related branches found
No related tags found
1 merge request!69Resolve "Rework Asset Loader API"
Pipeline #26615 passed
......@@ -269,6 +269,8 @@ struct Mesh {
* initialized and all information is final, except for the missing binary
* data. This means that indices to vectors will remain valid even when the
* shallow scene struct is filled with data by loadMesh().
* Note that for URIs only (local) filesystem paths are supported, no
* URLs using network protocols etc.
*
* @param path must be the path to a glTF- or glb-file.
* @param scene is a reference to a Scene struct that will be filled with the
......@@ -300,6 +302,8 @@ struct Mesh {
*/
int loadScene(const std::filesystem::path &path, Scene &scene);
/**
* TODO document
*/
Texture loadTexture(const std::filesystem::path& path);
}
......@@ -342,7 +342,8 @@ namespace vkcv::asset {
}
/**
* TODO document
* Initializes vertex groups of a Mesh, including copying the data to
* index- and vertex-buffers.
*/
static int loadVertexGroups(const fx::gltf::Mesh &objectMesh,
const fx::gltf::Document &sceneObjects,
......
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