type t
Type of a window
This module provides a low-level interface to create and manage windows. You should probably use the OgamlGraphics.Window wrapper.
type t
val create : width:int -> height:int -> title:string -> settings:ContextSettings.t -> t
val set_title : t -> string -> unit
val close : t -> unit
val destroy : t -> unit
val rect : t -> OgamlMath.IntRect.t
val size : t -> OgamlMath.Vector2i.t
val resize : t -> OgamlMath.Vector2i.t -> unit
val toggle_fullscreen : t -> unit
val is_open : t -> bool
true
iff the window is open
val has_focus : t -> bool
true
iff the window has the focus
val poll_event : t -> Event.t option
val display : t -> unit
val show_cursor : t -> bool -> unit