Module Gl.Attrs

Context attributes.

module Power_preference : sig ... end

Power preference enumeration.

type t

The type for WebGLContextAttributes.

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

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

val alpha : t -> bool
val depth : t -> bool
val stencil : t -> bool
val antialias : t -> bool
val premultiplied_alpha : t -> bool
val preserve_drawing_buffer : t -> bool
val power_preference : t -> Power_preference.t
val desynchronized : t -> bool