package js_of_ocaml

  1. Overview
  2. Docs
Compiler from OCaml bytecode to JavaScript

Install

Dune Dependency

Authors

Maintainers

Sources

js_of_ocaml-4.0.0.tbz
sha256=df02f819e5b2f48234af2b3e3e7c9781afa8212f8bece7ebcfbd8358b394495e
sha512=92e822849c8be14ce0428f7f4be3991449f76e65d408073a5b8b9674ba2d099439027aa11618b603c7ee31a179cf6976d54a929917a69b269425f0367926c200

doc/js_of_ocaml/Js_of_ocaml/WebGL/index.html

Module Js_of_ocaml.WebGL

WebGL binding

5.1 Types

type sizei = int
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.13.1 Attributes

5.14 WebGLContextEvent

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

Get a context

OCaml

Innovation. Community. Security.