diff options
| author | Laytan <laytanlaats@hotmail.com> | 2025-08-01 23:46:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-01 23:46:13 +0200 |
| commit | a7a6216e08184297d9e5db6fd075cb25d6eefec8 (patch) | |
| tree | 3a48de210ec8f75f31bf5755874c676481ad27e2 | |
| parent | d343b93ef2ea3bd5b874a88c72902afa0b3ee45f (diff) | |
| parent | 6c2b72f70128e63dea0b009f298e0b34bd9fd865 (diff) | |
Merge pull request #5510 from taylormck/add-cgltf-enums
add cgltf filter type and wrap mode enums
| -rw-r--r-- | vendor/cgltf/cgltf.odin | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/vendor/cgltf/cgltf.odin b/vendor/cgltf/cgltf.odin index e9dc7ef84..bab58d851 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"`, |