mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Merge pull request #5510 from taylormck/add-cgltf-enums
add cgltf filter type and wrap mode enums
This commit is contained in:
Vendored
+20
-4
@@ -262,12 +262,28 @@ image :: struct {
|
|||||||
extensions: [^]extension `fmt:"v,extensions_count"`,
|
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 {
|
sampler :: struct {
|
||||||
name: cstring,
|
name: cstring,
|
||||||
mag_filter: c.int,
|
mag_filter: filter_type,
|
||||||
min_filter: c.int,
|
min_filter: filter_type,
|
||||||
wrap_s: c.int,
|
wrap_s: wrap_mode,
|
||||||
wrap_t: c.int,
|
wrap_t: wrap_mode,
|
||||||
extras: extras_t,
|
extras: extras_t,
|
||||||
extensions_count: uint,
|
extensions_count: uint,
|
||||||
extensions: [^]extension `fmt:"v,extensions_count"`,
|
extensions: [^]extension `fmt:"v,extensions_count"`,
|
||||||
|
|||||||
Reference in New Issue
Block a user