jon.recoil.org

Module Gl.Attrs

Context attributes.

module Power_preference : sig ... end

Power preference enumeration.

type t
val v : ?alpha:bool -> ?depth:bool -> ?stencil:bool -> ?antialias:bool -> ?premultiplied_alpha:bool -> ?preserve_drawing_buffer:bool -> ?power_preference:Brr_canvas.Gl.Attrs.Power_preference.t -> ?fail_if_major_performance_caveat:bool -> ?desynchronized:bool -> unit -> Brr_canvas.Gl.Attrs.t

v () are WebGL context attributes with the given properties and defaults.

val alpha : Brr_canvas.Gl.Attrs.t -> bool
val depth : Brr_canvas.Gl.Attrs.t -> bool
val stencil : Brr_canvas.Gl.Attrs.t -> bool
val antialias : Brr_canvas.Gl.Attrs.t -> bool
val premultiplied_alpha : Brr_canvas.Gl.Attrs.t -> bool
val preserve_drawing_buffer : Brr_canvas.Gl.Attrs.t -> bool
val desynchronized : Brr_canvas.Gl.Attrs.t -> bool