OCaml: Embedding openGL in GTK

点点圈 提交于 2019-12-12 16:08:46

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!