gdi32.odin 892 B

1234567891011121314151617181920212223
  1. // +build windows
  2. package win32
  3. foreign import "system:gdi32.lib"
  4. @(default_calling_convention = "std")
  5. foreign gdi32 {
  6. @(link_name="GetStockObject") get_stock_object :: proc(fn_object: i32) -> Hgdiobj ---;
  7. @(link_name="StretchDIBits")
  8. stretch_dibits :: proc(hdc: Hdc,
  9. x_dst, y_dst, width_dst, height_dst: i32,
  10. x_src, y_src, width_src, header_src: i32,
  11. bits: rawptr, bits_info: ^Bitmap_Info,
  12. usage: u32,
  13. rop: u32) -> i32 ---;
  14. @(link_name="SetPixelFormat") set_pixel_format :: proc(hdc: Hdc, pixel_format: i32, pfd: ^Pixel_Format_Descriptor) -> Bool ---;
  15. @(link_name="ChoosePixelFormat") choose_pixel_format :: proc(hdc: Hdc, pfd: ^Pixel_Format_Descriptor) -> i32 ---;
  16. @(link_name="SwapBuffers") swap_buffers :: proc(hdc: Hdc) -> Bool ---;
  17. }