summaryrefslogtreecommitdiff
path: root/src/rendering
diff options
context:
space:
mode:
authorLorenzo Torres <torres@sideros.org>2025-03-23 22:40:03 +0100
committerLorenzo Torres <torres@sideros.org>2025-03-23 22:40:03 +0100
commit7660bc09bc3787da09e8e4e83a03575e8078d330 (patch)
tree92ca8150f875cc3e2a6b43752fa8a457edea84ea /src/rendering
parent1d720c790deca41bea2a98a8f42d68adcc622c52 (diff)
fixed leb128 integer decoding
Diffstat (limited to 'src/rendering')
-rw-r--r--src/rendering/gltf.zig13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/rendering/gltf.zig b/src/rendering/gltf.zig
index 2abeec1..614ee25 100644
--- a/src/rendering/gltf.zig
+++ b/src/rendering/gltf.zig
@@ -1,3 +1,16 @@
const std = @import("std");
const mesh = @import("mesh.zig");
const Allocator = std.mem.Allocator;
+
+pub const Model = packed struct {
+ const Chunk = packed struct {
+ length: u32,
+ ty: u32,
+
+ },
+ header: packed struct {
+ magic: u32,
+ version: u32,
+ length: u32,
+ },
+};