package tgls
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Thin bindings to OpenGL {3,4} and OpenGL ES {2,3} for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
tgls-0.9.1.tbz
sha512=c39cf8e74d438b6c258a493277d7fc4d5d65fbaa2974d7f4cf03308c7693a88043d86caa9a76d43e734d4afbdb8da6d03238f898f28d5b49ff9e1efa96efff64
doc/tgls.tgl4/Tgl4/index.html
Module Tgl4Source
OpenGL 4.x thin bindings.
Tgl4 can program core OpenGL 4.0 to 4.5 contexts. Consult the binding conventions.
Open the module use it, this defines only the module Gl in your scope.
References
OpenGL 4.x
Conventions
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:
- A few enumerant names do clash with functions name. In that case we postfix the enumerant name with
_enum. For example we haveTgl4.Gl.viewportandTgl4.Gl.viewport_enum. - If applying the above procedures results in an identifier that doesn't start with a letter, prefix the identifier with a
'_'. - If applying the above procedures results in an identifier that is an OCaml keyword, suffix the identifier with a
'_'.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page