Js_of_ocaml.WebGLWebGL binding
5.1 Types
class type contextAttributes = object ... end5.2 WebGLContextAttributes
val defaultContextAttributes : contextAttributes Js.tclass type activeInfo = object ... endclass type shaderPrecisionFormat = object ... endclass type renderingContext = object ... end5.13.1 Attributes
5.14 WebGLContextEvent
class type contextEvent = object ... endmodule Event : sig ... endGet a context
val getContext : Dom_html.canvasElement Js.t -> renderingContext Js.t Js.optval getContextWithAttributes : Dom_html.canvasElement Js.t -> contextAttributes Js.t -> renderingContext Js.t Js.opt