GTK +和OpenGL绑定 [英] Gtk+ and OpenGL bindings
问题描述
简单和短:什么是最先进的OpenGL为GTK +的结合
我想preFER一个widget,让我用它类似于QGLWidget来。
Simple and short: What is the most advanced OpenGL binding for GTK+? I would prefer a widget which allows me to use it similar to QGLWidget.
请注意:我偶然发现gtkglext,gtkglarea和混乱。我读了前两个有缺点/严肃的问题。
Note: I stumbled upon gtkglext, gtkglarea and clutter. I read the first two have shortcomings/ serious issues.
推荐答案
更新:
由于 GTK + -3.16
任何超出你的不的使用任何低于!
Since Gtk+-3.16
any beyond do not use any of the below!
如果你想用艺术的当前状态,顶点/像素着色器,你应该使用最新的GNOME和依靠其上限:
If you want to use the current state of the art, vertex/pixel shaders you should use the latest gnome and rely on its caps:
广泛报道的https:// WWW。 bassi.io/articles/2015/02/17/using-opengl-with-gtk/
好吧,我经过2小时以来读取pretty多,我的结果是:
Ok, I read pretty much through the last 2 hours and my results are:
- gtkglext 将完全地取代OpenGL的后端,这不是我的本意
- 杂波有盒装入对象的所有本地GL调用,并且不支持原生GL调用的所有的,但它提供了许多predifened过滤器和搞笑东西的
- gtkglarea 似乎罚款,其设计是可爱的。它在Qt的用法相同风格QGLWidget来(只要我能说的) gtkglarea的简单演示
- gtkglext will completly replace the backend by OpenGL, this was not my intention
- clutter has all native gl calls boxed into objects and does not support native gl calls at all, though it provides many predifened filters and funny stuff
- gtkglarea seems fine, its design is lovely. It has the same usage style as QGLWidget in Qt (as far as I can say) simple demo of gtkglarea
请注意:gtkglarea有还是喜欢在退出核心转储一些问题(至少1.99)
Note: gtkglarea has still some problems like core dump on exit (at least 1.99)
注2:2.0.1版修复了这个问题。
Note2: Version 2.0.1 fixes this issue
编辑:对于那些寻求2D唯一的开罗似乎是最合适的。
For those seeking for 2D only cairo seems to be most suitable.
这篇关于GTK +和OpenGL绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!