stb-image.monkey2 641 B

12345678910111213141516171819202122
  1. Namespace stb.image
  2. #Import "native/stb_image.c"
  3. #Import "native/stb_image.h"
  4. Extern
  5. Struct stbi_char="char"
  6. End
  7. Struct stbi_io_callbacks
  8. Field read:Int( Void Ptr,stbi_char Ptr,Int )
  9. Field skip:Void( Void Ptr,Int )
  10. Field eof:Int( Void Ptr )
  11. End
  12. Function stbi_load:UByte Ptr( filename:CString,x:Int Ptr,y:Int Ptr,comp:Int Ptr,req_comp:Int )
  13. Function stbi_load_from_memory:UByte Ptr( buffer:UByte Ptr,len:Int,x:Int Ptr,y:Int Ptr,comp:Int Ptr,req_comp:Int )
  14. 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 )
  15. Function stbi_image_free( data:Void Ptr )