package ocamlsdl
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val rect : x:int -> y:int -> w:int -> h:int -> rect
val get_video_info : unit -> video_info
val get_video_info_format : unit -> pixel_format_info
val list_modes : ?bpp:int -> video_flag list -> modes
val video_mode_ok : w:int -> h:int -> bpp:int -> video_flag list -> int
type surface_info = {
flags : surface_flags list;
w : int;
h : int;
pitch : int;
clip_rect : rect;
refcount : int;
}
val surface_info : surface -> surface_info
val surface_format : surface -> pixel_format_info
val surface_dims : surface -> int * int * int
val surface_flags : surface -> surface_flags list
val surface_bpp : surface -> int
val get_video_surface : unit -> surface
val set_video_mode : w:int -> h:int -> ?bpp:int -> video_flag list -> surface
val flip : surface -> unit
val black : color
val white : color
val red : color
val green : color
val blue : color
val yellow : color
val cyan : color
val magenta : color
val use_palette : surface -> bool
val palette_ncolors : surface -> int
val set_palette :
surface ->
?flag:palette_flag ->
?firstcolor:int ->
color array ->
unit
val create_RGB_surface :
[ `ASYNCBLIT | `HWSURFACE | `SRCALPHA | `SRCCOLORKEY | `SWSURFACE ] list ->
w:int ->
h:int ->
bpp:int ->
rmask:int32 ->
gmask:int32 ->
bmask:int32 ->
amask:int32 ->
surface
val create_RGB_surface_from_32 :
(int32, Stdlib.Bigarray.int32_elt, Stdlib.Bigarray.c_layout)
Stdlib.Bigarray.Array1.t ->
w:int ->
h:int ->
pitch:int ->
rmask:int32 ->
gmask:int32 ->
bmask:int32 ->
amask:int32 ->
surface
val create_RGB_surface_from_24 :
(int, Stdlib.Bigarray.int8_unsigned_elt, Stdlib.Bigarray.c_layout)
Stdlib.Bigarray.Array1.t ->
w:int ->
h:int ->
pitch:int ->
rmask:int ->
gmask:int ->
bmask:int ->
amask:int ->
surface
val create_RGB_surface_from_16 :
(int, Stdlib.Bigarray.int16_unsigned_elt, Stdlib.Bigarray.c_layout)
Stdlib.Bigarray.Array1.t ->
w:int ->
h:int ->
pitch:int ->
rmask:int ->
gmask:int ->
bmask:int ->
amask:int ->
surface
val create_RGB_surface_from_8 :
(int, Stdlib.Bigarray.int8_unsigned_elt, Stdlib.Bigarray.c_layout)
Stdlib.Bigarray.Array1.t ->
w:int ->
h:int ->
pitch:int ->
rmask:int ->
gmask:int ->
bmask:int ->
amask:int ->
surface
val must_lock : surface -> bool
val lock : surface -> unit
val unlock : surface -> unit
val pixel_data :
surface ->
(int, Stdlib.Bigarray.int8_unsigned_elt, Stdlib.Bigarray.c_layout)
Stdlib.Bigarray.Array1.t
val pixel_data_8 :
surface ->
(int, Stdlib.Bigarray.int8_unsigned_elt, Stdlib.Bigarray.c_layout)
Stdlib.Bigarray.Array1.t
val pixel_data_16 :
surface ->
(int, Stdlib.Bigarray.int16_unsigned_elt, Stdlib.Bigarray.c_layout)
Stdlib.Bigarray.Array1.t
val pixel_data_24 :
surface ->
(int, Stdlib.Bigarray.int8_unsigned_elt, Stdlib.Bigarray.c_layout)
Stdlib.Bigarray.Array1.t
val pixel_data_32 :
surface ->
(int32, Stdlib.Bigarray.int32_elt, Stdlib.Bigarray.c_layout)
Stdlib.Bigarray.Array1.t
val get_pixel : surface -> x:int -> y:int -> int32
val put_pixel : surface -> x:int -> y:int -> int32 -> unit
val load_BMP : string -> surface
val load_BMP_from_mem : string -> surface
val save_BMP : surface -> string -> unit
val unset_color_key : surface -> unit
val set_color_key : surface -> ?rle:bool -> int32 -> unit
val get_color_key : surface -> int32
val unset_alpha : surface -> unit
val set_alpha : surface -> ?rle:bool -> int -> unit
val get_alpha : surface -> int
val unset_clip_rect : surface -> unit
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>