Browse Source

adding `is_16_bit_from_memory` to stbi

Tail Wag Games 3 years ago
parent
commit
d4f62f52db
1 changed files with 3 additions and 2 deletions
  1. 3 2
      vendor/stb/image/stb_image.odin

+ 3 - 2
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_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 ---
 	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,
 	// 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
 	// we just return the colors as stored in the file. set this flag to force