From b0708f165601fad16aa59715dbe32796a6e7081e Mon Sep 17 00:00:00 2001 From: ladevieq Date: Tue, 6 Sep 2022 22:41:00 +0200 Subject: Setup for texture upload system --- include/gltf.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include/gltf.hpp') diff --git a/include/gltf.hpp b/include/gltf.hpp index 2886dea..59189d4 100644 --- a/include/gltf.hpp +++ b/include/gltf.hpp @@ -15,6 +15,13 @@ struct node { Mesh* mesh = nullptr; }; +struct raw_image { + int32_t x; + int32_t y; + int32_t n; + uint8_t *data; +}; + namespace std::filesystem { class path; } @@ -42,7 +49,7 @@ private: json gltf_json; std::vector meshes; std::vector materials; - std::vector textures; + std::vector textures; std::vector> buffers; }; -- cgit v1.3