The gl-legacy library is a minimal set of OCaml bindings to the venerable openGL 2.1 immediate mode. In particular, it includes Display Lists, and the interesting Feedback mode.
gl-legacy can be used by itself (see the triangle or cube example), but more reasonably it should be thought of as an add-on to the more modern tgls bindings.
When mixing this library with tgls, it is convenient to use the following aliases: (for instance if you target OpenGL 3.x)
In particular, that doc tells you the meaning of the arguments, and which OpenGL constants (enums) are valid parameters for each function.
If you don't find a function below, it is maybe because it still exists in OpenGL 3, and hence can be found from tgls. For instance if you want to use OpenGL 3.x you should consult: