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