hi;

On 2 September 2014 10:43, Florian Pelz <pelzflor...@googlemail.com> wrote:
> Hi,
>
> I'm a little confused about the state of OpenGL integration in GTK+. I want
> to use a GTK+ 3 widget that allows me to draw using OpenGL in Vala. How do I
> go about this?

it's currently in progress: https://bugzilla.gnome.org/show_bug.cgi?id=119189

there are some details to work out, especially for synchronization and
portability, but 3.16 should have API to integrate with OpenGL.

> gtkglarea seems to provide this and supports GTK+ 3 since the latest patch,
> but it does not have Vala or Introspection support.

you'll have to write a vapi file, or you'll have to add introspection
support to gtkglarea.

> Tarnyko mentions there also is a GTK+ 3 port of GTKGLExt being worked on.
> I've read some things about Cairo OpenGL support. Is there a good way to get
> an OpenGL context from Cairo?

no. Cairo-GL is mostly experimental, and it does not give you the
ability to draw with random GL calls; it's meant to be a way to draw
with Cairo calls on a GL rendering surface.

ciao,
 Emmanuele.


-- 
http://www.bassi.io
[@] ebassi [@gmail.com]
_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to