diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2022-02-24 11:49:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-24 11:49:08 +0100 |
| commit | 4a66c3c420ebf15dd062f77a7468820aca5a5c81 (patch) | |
| tree | aa59ea90963e598f979af3cc9d0f75cbcdb5f98d | |
| parent | c3c88633a55e371ce4cf7fe2b4efebf4443f01ad (diff) | |
| parent | d4f62f52db3b263b2c081b90dca0b1a23ccb2993 (diff) | |
Merge pull request #1546 from zacharycarter/patch-2
adding `is_16_bit_from_memory` to stbi
| -rw-r--r-- | vendor/stb/image/stb_image.odin | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/stb/image/stb_image.odin b/vendor/stb/image/stb_image.odin index 8a3582792..4f7e43171 100644 --- a/vendor/stb/image/stb_image.odin +++ b/vendor/stb/image/stb_image.odin @@ -74,8 +74,9 @@ foreign stbi { info_from_memory :: proc(buffer: [^]byte, len: c.int, x, y, comp: ^c.int) -> c.int --- info_from_callbacks :: proc(clbk: ^Io_Callbacks, user: rawptr, x, y, comp: ^c.int) -> c.int --- - is_16_bit :: proc(filename: cstring) -> b32 --- - is_16_bit_from_file :: proc(f: ^c.FILE) -> b32 --- + is_16_bit :: proc(filename: cstring) -> b32 --- + is_16_bit_from_file :: proc(f: ^c.FILE) -> b32 --- + is_16_bit_from_memory :: proc(buffer: [^]byte, len: c.int) -> c.int --- // for image formats that explicitly notate that they have premultiplied alpha, // we just return the colors as stored in the file. set this flag to force |