Browse Source

Added stb image load from FILE*.

Mark Sibly 7 years ago
parent
commit
b242fb9570
1 changed files with 3 additions and 1 deletions
  1. 3 1
      modules/stb-image/stb-image.monkey2

+ 3 - 1
modules/stb-image/stb-image.monkey2

@@ -1,6 +1,8 @@
 
 Namespace stb.image
 
+#Import "<libc>"
+
 #Import "native/stb_image.cpp"
 #Import "native/stb_image.h"
 
@@ -18,5 +20,5 @@ End
 Function stbi_load:UByte Ptr( filename:CString,x:Int Ptr,y:Int Ptr,comp:Int Ptr,req_comp:Int )
 Function stbi_load_from_memory:UByte Ptr( buffer:UByte Ptr,len:Int,x:Int Ptr,y:Int Ptr,comp:Int Ptr,req_comp:Int )
 Function stbi_load_from_callbacks:UByte Ptr( clbk:stbi_io_callbacks Ptr,user:Void Ptr,x:Int Ptr,y:Int Ptr,comp:Int Ptr,req_comp:Int )
-
+Function stbi_load_from_file:UByte Ptr( f:libc.FILE Ptr,x:Int Ptr,y:Int Ptr,comp:Int Ptr,req_comp:Int )
 Function stbi_image_free( data:Void Ptr )