OCaml: Deploying openGL in GTK

I would like to insert OpenGL graphics into the GTK program in OCaml. Do you have any ideas on how to do this?

(EDIT) Tk seems to have solved the problem with Togl .

+3
source share
1 answer

In my ubuntu, I have the liblablgtk2-gl-ocaml package:

$ apt-cache show liblablgtk2-gl-ocaml-dev
....
This package contains lablgtk development files for libraries using GtkGL.

I have never used it, but I assume that the GtkGL bindings are exactly what you need.

+3
source

Source: https://habr.com/ru/post/1790720/


All Articles