Module Canvas.WebGl

type glT
type programT
type shaderT
type bufferT
val _DEPTH_BUFFER_BIT : int
val _STENCIL_BUFFER_BIT : int
val _COLOR_BUFFER_BIT : int
val _POINTS : int
val _LINES : int
val _LINE_LOOP : int
val _LINE_STRIP : int
val _TRIANGLES : int
val _TRIANGLE_STRIP : int
val _TRIANGLE_FAN : int
val _CULL_FACE : int
val _BLEND : int
val _DITHER : int
val _STENCIL_TEST : int
val _DEPTH_TEST : int
val _SCISSOR_TEST : int
val _POLYGON_OFFSET_FILL : int
val _SAMPLE_ALPHA_TO_COVERAGE : int
val _SAMPLE_COVERAGE : int
val _ZERO : int
val _ONE : int
val _SRC_COLOR : int
val _ONE_MINUS_SRC_COLOR : int
val _SRC_ALPHA : int
val _ONE_MINUS_SRC_ALPHA : int
val _DST_ALPHA : int
val _ONE_MINUS_DST_ALPHA : int
val _BYTE : int
val _UNSIGNED_BYTE : int
val _SHORT : int
val _UNSIGNED_SHORT : int
val _INT : int
val _UNSIGNED_INT : int
val _FLOAT : int
val _FRONT : int
val _BACK : int
val _FRONT_AND_BACK : int
val _FRAGMENT_SHADER : int
val _VERTEX_SHADER : int
val _ARRAY_BUFFER : int
val _ELEMENT_ARRAY_BUFFER : int
val _ARRAY_BUFFER_BINDING : int
val _ELEMENT_ARRAY_BUFFER_BINDING : int
val _STREAM_DRAW : int
val _STATIC_DRAW : int
val _DYNAMIC_DRAW : int
val clear : glT -> int -> unit
val clearColor : glT -> float -> float -> float -> float -> unit
val enable : glT -> int -> unit
val disable : glT -> int -> unit
val blendFunc : glT -> int -> int -> unit
val cullFace : glT -> int -> unit
val createBuffer : glT -> bufferT
val deleteBuffer : glT -> bufferT -> unit
val bindBuffer : glT -> int -> bufferT -> unit
val bufferData : glT -> int -> Js.Typed_array.Uint16Array.t -> int -> unit
val bufferFloatData : glT -> int -> Js.Typed_array.Float32Array.t -> int -> unit
val createProgram : glT -> programT
val linkProgram : glT -> programT -> unit
val useProgram : glT -> programT -> unit
val getProgramInfoLog : glT -> programT -> string
val bindAttribLocation : glT -> programT -> int -> string -> unit
val createShader : glT -> int -> shaderT
val shaderSource : glT -> shaderT -> string -> unit
val compileShader : glT -> shaderT -> unit
val attachShader : glT -> programT -> shaderT -> unit
val getShaderInfoLog : glT -> shaderT -> string
val drawElements : glT -> int -> int -> int -> int -> unit
val enableVertexAttribArray : glT -> int -> unit
val vertexAttribPointer : glT -> int -> int -> int -> bool -> int -> int -> unit
val getAttribLocation : glT -> programT -> string -> int
val drawArrays : glT -> int -> int -> int -> unit