aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor <2374670+taylormck@users.noreply.github.com>2025-07-28 23:28:19 +0900
committerTaylor <2374670+taylormck@users.noreply.github.com>2025-07-28 23:28:19 +0900
commit1b15c9928b5960c515b68fea3eafe7580902642b (patch)
tree4ccb75733c5c109e97b6fbe4b2eaff79ae94008e
parentbe3006dbf26fbe6b51bb489f346793823968aedf (diff)
add cgltf filter type and wrap mode enums
-rw-r--r--vendor/cgltf/cgltf.odin24
1 files changed, 20 insertions, 4 deletions
diff --git a/vendor/cgltf/cgltf.odin b/vendor/cgltf/cgltf.odin
index e9dc7ef84..92b498d37 100644
--- a/vendor/cgltf/cgltf.odin
+++ b/vendor/cgltf/cgltf.odin
@@ -262,12 +262,28 @@ image :: struct {
extensions: [^]extension `fmt:"v,extensions_count"`,
}
+filter_type :: enum c.int {
+ undefined = 0,
+ nearest = 9728,
+ linear = 9729,
+ nearest_mipmap_nearest = 9984,
+ linear_mipmap_nearest = 9985,
+ nearest_mipmap_linear = 9986,
+ linear_mipmap_linear = 9987,
+}
+
+wrap_mode :: enum c.int {
+ clamp_to_edge = 33071,
+ mirrored_repeat = 33648,
+ repeat = 10497,
+}
+
sampler :: struct {
name: cstring,
- mag_filter: c.int,
- min_filter: c.int,
- wrap_s: c.int,
- wrap_t: c.int,
+ mag_filter: filter_type,
+ min_filter: filter_type,
+ wrap_s: wrap_mode,
+ wrap_t: wrap_mode,
extras: extras_t,
extensions_count: uint,
extensions: [^]extension `fmt:"v,extensions_count"`,