module Sdlpixel:sig
..end
Pixel format
API Doc: Pixels category
val get_pixel_format_name : SdlpixelFormat.t -> string
type
pixel_format
val alloc_format : SdlpixelFormat.t -> pixel_format
val free_format : pixel_format -> unit
typeuint8 =
int
typergb =
uint8 * uint8 * uint8
typergba =
uint8 * uint8 * uint8 * uint8
val map_RGB : pixel_format -> rgb:rgb -> int32
val map_RGBA : pixel_format -> rgba:rgba -> int32
val get_RGB : pixel:int32 -> fmt:pixel_format -> rgb
val get_RGBA : pixel:int32 -> fmt:pixel_format -> rgba