module Tgl4:sig
..end
Tgl4
can program core OpenGL 4.0 to 4.4 contexts.
Consult the binding conventions.
Open the module use it, this defines only the module Gl
in your scope. To use in the toplevel with findlib
,
just #require "tgls.tgl4"
, it automatically loads the library and
opens the Tgl4
module.
References
Release 0.8.1 — OpenGL 4.x — Daniel Bünzli <daniel.buenzl i@erratique.ch>
module Gl:sig
..end
To find the name of an OCaml function corresponding to a C
function name, map the gl
prefix to the module name
Tgl4.Gl
,
add an underscore between each minuscule and majuscule and lower
case the result. For example glGetError
maps to
Tgl4.Gl.get_error
To find the name of an OCaml value corresponding to a C enumerant name,
map the GL_
prefix to the module name Tgl4.Gl
and lower case the rest. For example GL_COLOR_BUFFER_BIT
maps to
Tgl4.Gl.color_buffer_bit
.
The following exceptions occur:
_enum
. For example we have
Tgl4.Gl.viewport
and Tgl4.Gl.viewport_enum
.'_'
.'_'
.