sig
external get_pixel_format_name : SdlpixelFormat.t -> string
= "caml_SDL_GetPixelFormatName"
type pixel_format
external alloc_format : SdlpixelFormat.t -> Sdlpixel.pixel_format
= "caml_SDL_AllocFormat"
external free_format : Sdlpixel.pixel_format -> unit
= "caml_SDL_FreeFormat"
type uint8 = int
type rgb = Sdlpixel.uint8 * Sdlpixel.uint8 * Sdlpixel.uint8
type rgba =
Sdlpixel.uint8 * Sdlpixel.uint8 * Sdlpixel.uint8 * Sdlpixel.uint8
external map_RGB : Sdlpixel.pixel_format -> rgb:Sdlpixel.rgb -> int32
= "caml_SDL_MapRGB"
external map_RGBA : Sdlpixel.pixel_format -> rgba:Sdlpixel.rgba -> int32
= "caml_SDL_MapRGBA"
external get_RGB : pixel:int32 -> fmt:Sdlpixel.pixel_format -> Sdlpixel.rgb
= "caml_SDL_GetRGB"
external get_RGBA :
pixel:int32 -> fmt:Sdlpixel.pixel_format -> Sdlpixel.rgba
= "caml_SDL_GetRGBA"
end