ocamlsdl
Interface between OCaml and SDL
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library sdl
val get_state : ?relative:bool -> unit -> int * int * button list
type cursor_data = {
data : ( int, Bigarray.int8_unsigned_elt, Bigarray.c_layout ) Bigarray.Array2.t; |
mask : ( int, Bigarray.int8_unsigned_elt, Bigarray.c_layout ) Bigarray.Array2.t; |
w : int; |
h : int; |
hot_x : int; |
hot_y : int; |
}
val make_cursor :
data:( int, Bigarray.int8_unsigned_elt, Bigarray.c_layout ) Bigarray.Array2.t ->
mask:( int, Bigarray.int8_unsigned_elt, Bigarray.c_layout ) Bigarray.Array2.t ->
hot_x:int ->
hot_y:int ->
cursor
val free_cursor : cursor -> unit
val set_cursor : cursor -> unit
val get_cursor : unit -> cursor
val cursor_data : cursor -> cursor_data
val pprint_cursor : cursor -> unit
val convert_to_cursor :
data:int array ->
mask:int array ->
w:int ->
h:int ->
hot_x:int ->
hot_y:int ->
cursor