OCaml OpenGL ES 3.0 bindings

Screen shot

Introduction

This project aims at providing a portable way to write OpenGL (more precisely OpenGL ES) application in OCaml. It comes in three parts:

Authors

Installation

To install from source, clone the repository and run make && make install. Alternatively, you can pin the repository using the following commands (only one of latest two is useful):

opam pin add gles3-stubs.dev https://github.com/craff/gles3.git
opam pin add gles3.dev https://github.com/craff/gles3.git
opam pin add gles3-x11.dev https://github.com/craff/gles3.git
opam pin add gles3-wayland.dev https://github.com/craff/gles3.git

Documentation

The OCaml documentation can be extracted to a webpage using make doc. The generate page is the placed at _build/default/_doc/_html/index.html).

The repository also contains multiple examples:

To run the examples: to run an example, move to its directory and run one of the two following commands

   BUILD_WAYLAND_EXAMPLES=true dune exec -- <name>_wayland.exe

where name is the name of the file defining the example without extension. example: flying_cube_x11.exe for the first example.

Contributing

Contributions are very welcome!

Things to do: