stb-image.monkey2 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. Namespace stb.image
  2. #Import "<libc>"
  3. #Import "native/stb_image.cpp"
  4. #Import "native/stb_image.h"
  5. Extern
  6. Struct stbi_char="char"
  7. End
  8. Struct stbi_io_callbacks
  9. Field read:Int( Void Ptr,stbi_char Ptr,Int )
  10. Field skip:Void( Void Ptr,Int )
  11. Field eof:Int( Void Ptr )
  12. End
  13. Function stbi_load:UByte Ptr( filename:CString,x:Int Ptr,y:Int Ptr,comp:Int Ptr,req_comp:Int )
  14. Function stbi_load_from_memory:UByte Ptr( buffer:UByte Ptr,len:Int,x:Int Ptr,y:Int Ptr,comp:Int Ptr,req_comp:Int )
  15. 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 )
  16. Function stbi_load_from_file:UByte Ptr( f:libc.FILE Ptr,x:Int Ptr,y:Int Ptr,comp:Int Ptr,req_comp:Int )
  17. Function stbi_loadf:Float Ptr( filename:CString,x:Int Ptr,y:Int Ptr,comp:Int Ptr,req_comp:Int )
  18. Function stbi_loadf_from_memory:Float Ptr( buffer:UByte Ptr,len:Int,x:Int Ptr,y:Int Ptr,comp:Int Ptr,req_comp:Int )
  19. Function stbi_loadf_from_callbacks:Float Ptr( clbk:stbi_io_callbacks Ptr,user:Void Ptr,x:Int Ptr,y:Int Ptr,comp:Int Ptr,req_comp:Int )
  20. Function stbi_loadf_from_file:float Ptr( f:libc.FILE Ptr,x:Int Ptr,y:Int Ptr,comp:Int Ptr,req_comp:Int )
  21. Function stbi_image_free( data:Void Ptr )
  22. Function stbi_is_hdr_from_callbacks:Int( clbk:stbi_io_callbacks Ptr,user:Void Ptr )
  23. Function stbi_is_hdr_from_memory:Int( buffer:UByte Ptr,len:Int )
  24. Function stbi_is_hdr:Int( filename:CString )
  25. Function stbi_is_hdr_from_file:Int( f:libc.FILE Ptr )
  26. Function stbi_ldr_to_hdr_gamma( gamma:Float )
  27. Function stbi_ldr_to_hdr_scale( scale:Float )
  28. Function stbi_hdr_to_ldr_gamma( gamma:Float )
  29. Function stbi_hdr_to_ldr_scale( scale:Float )