Re: Using OpenGL with GTK

2014-02-20 Thread Rodrigo Moya

On 16 Feb 2014, at 02:59, Rena  wrote:

> What's the ideal way to use OpenGL in a GTK application? It seems like
> there are a few not very good options:
> 
> 1) GtkGlExt: great except it doesn't support introspection, so I can't use
> it from a scripting language without manually writing a binding for it. Not
> sure if it's still supported? A bug to add introspection has been open for
> ages.
> 
> 2) GtkGlArea: seems to be a predecessor to GtkGlExt?
> 
> 3) SDL: no introspection here either, plus I have to have a separate window
> for the OpenGL render.
> 
> Is there another way?
> 
you can use Clutter (and Clutter-gtk to embed a clutter “stage” in a GTK 
window) and cogl (low level GL used by clutter) for opengl-like stuff.

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Using OpenGL with GTK

2014-02-20 Thread Bernhard Schuster
cogl,clutter,gtkdrawingarea should work - depending on what you want 
ranging from a framework to convenience rappers to just a gl context. 
gtkglext is a different story, it renders the whole widget via OpenGL 
not only the content of a specific widget.
Also see 
http://stackoverflow.com/questions/3815806/gtk-and-opengl-bindings


On Sun, Feb 16, 2014 at 2:59 AM, Rena  wrote:

What's the ideal way to use OpenGL in a GTK application? It seems like
there are a few not very good options:

1) GtkGlExt: great except it doesn't support introspection, so I 
can't use
it from a scripting language without manually writing a binding for 
it. Not
sure if it's still supported? A bug to add introspection has been 
open for

ages.

2) GtkGlArea: seems to be a predecessor to GtkGlExt?

3) SDL: no introspection here either, plus I have to have a separate 
window

for the OpenGL render.

Is there another way?

--
Sent from my Game Boy.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Using OpenGL with GTK

2014-02-15 Thread Rena
What's the ideal way to use OpenGL in a GTK application? It seems like
there are a few not very good options:

1) GtkGlExt: great except it doesn't support introspection, so I can't use
it from a scripting language without manually writing a binding for it. Not
sure if it's still supported? A bug to add introspection has been open for
ages.

2) GtkGlArea: seems to be a predecessor to GtkGlExt?

3) SDL: no introspection here either, plus I have to have a separate window
for the OpenGL render.

Is there another way?

-- 
Sent from my Game Boy.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list