diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2022-09-06 22:41:00 +0200 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2022-09-06 22:41:00 +0200 |
| commit | b0708f165601fad16aa59715dbe32796a6e7081e (patch) | |
| tree | 7741e0fd5e180905618d27ac4003c74633b96a13 /include/gltf.hpp | |
| parent | 24b02adbf6189025c00d62417fb4b49346f22c98 (diff) | |
Setup for texture upload system
Diffstat (limited to 'include/gltf.hpp')
| -rw-r--r-- | include/gltf.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
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<Mesh> meshes;
std::vector<material> materials;
- std::vector<texture> textures;
+ std::vector<Texture*> textures;
std::vector<std::vector<uint8_t>> buffers;
};
|
