问题
I would like to embed openGL graphics in a GTK program in OCaml. Do you have any ideas on how to do this?
(EDIT) Tk seems to have the problem solved with Togl.
回答1:
In my ubuntu I have the package "liblablgtk2-gl-ocaml":
$ apt-cache show liblablgtk2-gl-ocaml-dev
....
This package contains the development files of lablgtk for libraries using GtkGL.
Never used it, but I guess that the GtkGL bindings is exactly what you need.
来源:https://stackoverflow.com/questions/4933975/ocaml-embedding-opengl-in-gtk