OCaml for Scientists
Chapter 6: Visualisation
This web page contains programs derived from chapter 6 of our book OCaml for Scientists.
In order to compile the programs on this page, you will need to have the OCaml compilers and run-time installed and the lablGL bindings to OpenGL and glut, as well as the libraries which they depend upon.
In order to run the downloadable executables on this page, you will need an OpenGL implementation, such as Mesa or the nVidia drivers (if you have an nVidia graphics card). In most cases, you will already have OpenGL installed.
| Minimal OpenGL program |
|
|
| Simple 2D animation |
|
|
| 3D animation |
|
|
|