package js_of_ocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

WebGL binding

type sizei = int

5.1 Types

type sizeiptr = int
type intptr = int
type uint = int
type clampf = float
type void
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 'a bufferParameter
type 'a vertexAttribParam
type vertexAttribPointerParam
type 'a attachParam
type framebufferStatus
type 'a 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
type shaderPrecisionType
type objectType
class type contextAttributes = object ... end

5.2 WebGLContextAttributes

val defaultContextAttributes : contextAttributes Js.t
type buffer
type framebuffer
type program
type renderbuffer
type shader
type texture
type 'a uniformLocation
class type activeInfo = object ... end
class type shaderPrecisionFormat = object ... end
class type renderingContext = object ... end

5.14 WebGLContextEvent

class type contextEvent = object ... end
module Event : sig ... end

Get a context

OCaml

Innovation. Community. Security.