Module Js_of_ocaml.WebGL
WebGL binding
5.1 Types
type sizei = inttype sizeiptr = inttype intptr = inttype uint = inttype clampf = Js.number_ttype voidtype clearBufferMask = inttype beginModetype blendingFactortype blendModetype bufferTargettype bufferUsagetype cullFaceModetype depthFunctiontype enableCaptype errorCodetype frontFaceDirtype hintTargettype hintModetype textureUnit = inttype 'a pixelStoreParamtype stencilOptype fbTargettype attachmentPointtype rbTargettype texTargettype 'a parametertype 'a bufferParametertype 'a vertexAttribParamtype vertexAttribPointerParamtype 'a attachParamtype framebufferStatustype 'a renderbufferParamtype formattype pixelFormattype pixelTypetype 'a texParamtype dataTypetype shaderTypetype 'a programParamtype 'a shaderParamtype textureFiltertype wrapModetype texFiltertype uniformTypetype colorspaceConversiontype shaderPrecisionTypetype objectTypeclass type contextAttributes = object ... end5.2 WebGLContextAttributes
val defaultContextAttributes : contextAttributes Js.ttype buffertype framebuffertype programtype renderbuffertype shadertype texturetype 'a uniformLocationclass 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