Js_of_ocaml.WebGL
WebGL binding
5.1 Types
class type contextAttributes = object ... end
5.2 WebGLContextAttributes
val defaultContextAttributes : contextAttributes Js.t
class type activeInfo = object ... end
class type shaderPrecisionFormat = object ... end
class type renderingContext = object ... end
5.13.1 Attributes
5.14 WebGLContextEvent
class type contextEvent = object ... end
module Event : sig ... end
Get a context
val getContext : Dom_html.canvasElement Js.t -> renderingContext Js.t Js.opt
val getContextWithAttributes : Dom_html.canvasElement Js.t -> contextAttributes Js.t -> renderingContext Js.t Js.opt