Module Lit

module Lit: sig .. end
Lightweight OpenGL-based rendering engine.

Lit is a lightweight OpenGL-based rendering engine for OCaml. It provides a thin abstraction to program GPUs with OpenGL, OpenGL ES or WebGL.

Open the module to use it, this defines only modules and types in your scope.

Note. Any functions that doesn't take a renderer value can be used safely even if there's no renderer setup.

Release 0.0.0-118-gd95a248 — Daniel Bünzli <daniel.buenzl i@erratique.ch>



Renderer


type renderer 
The type for renderers.

Buffers, primitive and textures


type buf 
The type for buffers.
type attr 
The type for vertex stream attributes.
type prim 
The type for primitives.
type tex 
The type for textures.
module Buf: sig .. end
Buffers.
module Attr: sig .. end
Attributes.
module Prim: sig .. end
Primitives.
module Tex: sig .. end
Textures.

GPU programs and parameters


type 'a uniform 
The type for program uniforms.
type prog 
The type for programs.
type effect 
The type for effects.
module Uniform: sig .. end
Uniforms.
module Prog: sig .. end
GPU programs
module Effect: sig .. end
Effects.

Rendering


type view 
The type for rendered views.
type fbuf 
The type for framebuffers.
module View: sig .. end
Views.
module Fbuf: sig .. end
Framebuffers.
type op = {
   count : int;
   effect : effect;
   uniforms : Uniform.set;
   tr : Gg.m4;
   prim : prim;
}
The type for render operations.
module Renderer: sig .. end
Renderers