Module Gl.Attrs
Context attributes.
module Power_preference : sig ... endPower preference enumeration.
The type for WebGLContextAttributes.
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.tv () are WebGL context attributes with the given properties and defaults.
val alpha : Brr_canvas.Gl.Attrs.t -> boolval depth : Brr_canvas.Gl.Attrs.t -> boolval stencil : Brr_canvas.Gl.Attrs.t -> boolval antialias : Brr_canvas.Gl.Attrs.t -> boolval premultiplied_alpha : Brr_canvas.Gl.Attrs.t -> boolval preserve_drawing_buffer : Brr_canvas.Gl.Attrs.t -> boolval power_preference :
Brr_canvas.Gl.Attrs.t ->
Brr_canvas.Gl.Attrs.Power_preference.tval desynchronized : Brr_canvas.Gl.Attrs.t -> boolval to_jv : Brr_canvas.Gl.Attrs.t -> Jv.jvval of_jv : Jv.jv -> Brr_canvas.Gl.Attrs.t