package ocamlsdl2

  1. Overview
  2. Docs
type t
val create_rgb : width:int -> height:int -> depth:int -> t
val free : t -> unit
val load_bmp : filename:string -> t
val save_bmp : t -> filename:string -> unit
val fill_rect : dst:t -> rect:Sdlrect.t -> color:int32 -> unit
val blit_surface : src:t -> src_rect:Sdlrect.t -> dst:t -> dst_rect:Sdlrect.t -> Sdlrect.t
val blit_surf : src:t -> dst:t -> dst_rect:Sdlrect.t -> Sdlrect.t
val blit_surfs : src:t -> dst:t -> dst_rect:Sdlrect.t -> unit
val blit_pixels_unsafe : t -> string -> unit
val set_color_key : t -> enable:bool -> key:int32 -> unit
val get_width : t -> int
val get_height : t -> int
val get_dims : t -> int * int
val get_pitch : t -> int
val get_pixel32_unsafe : t -> x:int -> y:int -> int32
val get_pixel16_unsafe : t -> x:int -> y:int -> int32
val get_pixel8_unsafe : t -> x:int -> y:int -> int32
val get_bits_per_pixel : t -> int
val has_palette : t -> bool
val palette_num_colors : t -> int
val set_blend_mode : t -> SdlblendMode.t -> unit
val get_pixelformat_t : t -> SdlpixelFormat.t
val get_pixels : t -> string
OCaml

Innovation. Community. Security.