module WebGL: sig
.. end
5.1 Types
type
sizei = int
5.1 Types
type
sizeiptr = int
type
intptr = int
type
uint = int
type
clampf = float
type
clearBufferMask = int
type
beginMode
type
blendingFactor
type
blendMode
type
bufferTarget
type
bufferUsage
type
cullFaceMode
type
depthFunction
type
enableCap
type
errorCode
type
frontFaceDir
type
hintTarget
type
hintMode
type
textureUnit = int
type 'a
pixelStoreParam
type
stencilOp
type
fbTarget
type
attachmentPoint
type
rbTarget
type
texTarget
type 'a
parameter
type
bufferParameter
type 'a
vertexAttribParam
type
vertexAttribPointerParam
type 'a
attachParam
type
framebufferStatus
type
renderbufferParam
type
format
type
pixelFormat
type
pixelType
type 'a
texParam
type
dataType
type
shaderType
type 'a
programParam
type 'a
shaderParam
type
textureFilter
type
wrapMode
type
texFilter
type
uniformType
type
colorspaceConversion
class type contextAttributes = object
.. end
5.2 WebGLContextAttributes
type
buffer
type
framebuffer
type
program
type
renderbuffer
type
shader
type
texture
type 'a
uniformLocation
class type activeInfo = object
.. end
class type renderingContext = object
.. end
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