Class type WebGL.​renderingContext

class type renderingContext = object..end

method canvas : Dom_html.canvasElement Js.t Js.readonly_prop

5.13.1 Attributes

method drawingBufferWidth : sizei Js.readonly_prop
method drawingBufferHeight : sizei Js.readonly_prop
method getContextAttributes : contextAttributes Js.t Js.meth

5.13.2 Getting information about the context

method activeTexture : textureUnit -> unit Js.meth

5.13.3 Setting and getting state

method blendColor : 
clampf ->
clampf -> clampf -> clampf -> unit Js.meth
method blendEquation : blendMode -> unit Js.meth
method blendEquationSeparate : blendMode -> blendMode -> unit Js.meth
method blendFunc : blendingFactor -> blendingFactor -> unit Js.meth
method blendFuncSeparate : 
blendingFactor ->
blendingFactor ->
blendingFactor -> blendingFactor -> unit Js.meth
method clearColor : 
clampf ->
clampf -> clampf -> clampf -> unit Js.meth
method clearDepth : clampf -> unit Js.meth
method clearStencil : int -> unit Js.meth
method colorMask : 
bool Js.t -> bool Js.t -> bool Js.t -> bool Js.t -> unit Js.meth
method cullFace : cullFaceMode -> unit Js.meth
method depthFunc : depthFunction -> unit Js.meth
method depthMask : bool Js.t -> unit Js.meth
method depthRange : clampf -> clampf -> unit Js.meth
method disable : enableCap -> unit Js.meth
method enable : enableCap -> unit Js.meth
method frontFace : frontFaceDir -> unit Js.meth
method getParameter : 'a. 'a parameter -> 'a Js.meth
method getError : errorCode Js.meth
method hint : hintTarget -> hintMode -> unit Js.meth
method isEnabled : enableCap -> bool Js.t Js.meth
method lineWidth : float -> unit Js.meth
method pixelStorei : 'a. 'a pixelStoreParam -> 'a -> unit Js.meth
method polygonOffset : float -> float -> unit Js.meth
method sampleCoverage : clampf -> bool Js.t -> unit Js.meth
method stencilFunc : depthFunction -> int -> uint -> unit Js.meth
method stencilFuncSeparate : 
cullFaceMode ->
depthFunction -> int -> uint -> unit Js.meth
method stencilMask : uint -> unit Js.meth
method stencilMaskSeparate : cullFaceMode -> uint -> unit Js.meth
method stencilOp : stencilOp -> stencilOp -> stencilOp -> unit Js.meth
method stencilOpSeparate : 
cullFaceMode ->
stencilOp -> stencilOp -> stencilOp -> unit Js.meth
method scissor : int -> int -> sizei -> sizei -> unit Js.meth

5.13.4 Viewing and clipping

method viewport : int -> int -> sizei -> sizei -> unit Js.meth
method bindBuffer : bufferTarget -> buffer Js.t -> unit Js.meth

5.13.5 Buffer objects

method bindBuffer_ : bufferTarget -> buffer Js.t Js.opt -> unit Js.meth
method bufferData_create : 
bufferTarget -> sizeiptr -> bufferUsage -> unit Js.meth
method bufferData : 
'b.
bufferTarget ->
(#Typed_array.arrayBufferView as 'b) Js.t ->
bufferUsage -> unit Js.meth
method bufferData_raw : 
bufferTarget ->
Typed_array.arrayBuffer Js.t -> bufferUsage -> unit Js.meth
method bufferSubData : 
'c.
bufferTarget ->
intptr ->
(#Typed_array.arrayBufferView as 'c) Js.t -> unit Js.meth
method bufferSubData_raw : 
bufferTarget ->
intptr -> Typed_array.arrayBuffer Js.t -> unit Js.meth
method createBuffer : buffer Js.t Js.meth
method deleteBuffer : buffer Js.t -> unit Js.meth
method getBufferParameter : 
'a. bufferTarget -> 'a bufferParameter -> 'a Js.meth
method isBuffer : buffer Js.t -> bool Js.t Js.meth
method bindFramebuffer : fbTarget -> framebuffer Js.t -> unit Js.meth

5.13.6 Framebuffer objects

method bindFramebuffer_ : 
fbTarget -> framebuffer Js.t Js.opt -> unit Js.meth
method checkFramebufferStatus : fbTarget -> framebufferStatus Js.meth
method createFramebuffer : framebuffer Js.t Js.meth
method deleteFramebuffer : framebuffer Js.t -> unit Js.meth
method framebufferRenderbuffer : 
fbTarget ->
attachmentPoint ->
rbTarget -> renderbuffer Js.t -> unit Js.meth
method framebufferTexture2D : 
fbTarget ->
attachmentPoint ->
texTarget -> texture -> int -> unit Js.meth
method getFramebufferAttachmentParameter : 
'a.
fbTarget ->
attachmentPoint -> 'a attachParam -> 'a Js.meth
method isFramebuffer : framebuffer Js.t -> bool Js.t Js.meth
method bindRenderbuffer : rbTarget -> renderbuffer Js.t -> unit Js.meth

5.13.7 Renderbuffer objects

method bindRenderbuffer_ : 
rbTarget -> renderbuffer Js.t