Re: [GtkGLExt] Fwd: Re: GtkGlExt & GTK3



Hi Javier,
thank you very much for your work!

I think this is really good news, it is the first time I see confirmation that GTK 3 and OpenGL work well. These two examples don't test everything, but I would be really surprised if something was not working properly, after this.

The beauty of this approach is that the layer between GTK and OpenGL is so small, that the maintenance work needed when GTK (or OpenGL) changes is minimal and the chances of breaking something are also minimal.

Actually the function gtk_opengl_create () is now even simpler than before (the colormap references are gone):
https://gitorious.org/gtkopengl/gtkopengl/commit/5c0e45b4a493ec17daaa92cb7d4072ea0e8502fc

Perhaps it is time to start porting my package to GTK 3...

Regards,
Carlos

On 02/26/2014 02:43 AM, Javier Jardón wrote:
Hi Carlos,

On 23 February 2014 23:49, Carlos Pereira
<jose carlos pereira ist utl pt>  wrote:
Sorry for the delay, here is the code I prepared (it contains all
the functions needed to run OpenGL on a GTK drawing area):

http://www.gamgi.org/gtk_opengl.tar.gz
or:
http://www.gamgi.ist.utl.pt/gtk_opengl.tar.gz

The code is in a single file, gtk_opengl.c, very easy to read, I think.
It has 189 lines of C code only, a good part of it are comments and space
lines...

I included a directory with two classic examples, distributed by all
GtkGLArea and GtkGLExt releases, to show how this code works.

I included other directory with the same two examples, this time
using GtKGLExt, to make it simpler to compare the two approaches.

The code comes with README files and comments, with the most relevant
information. A variation of this code has been used since 2010 in a
relatively
large package without known problems.

I want to make it clear that I wrote this code for GTK 2 and the X Window
System.
There are a few gdk_x11_* functions, included through<gdk/gdkx.h>, that
might be handled differently on GTK 3. These changes, if needed, *should* be
trivial.
I was curious about this and I ported your "library" and examples to
GTK+3 (basically all the content of the home_made folder)
On my testing everything compiles and works perfectly fine :)
Ive uploaded the code to this repository [1] in case you (or anyone)
are interested

Regards and thanks for your work!

[1] https://gitorious.org/gtkopengl/gtkopengl/source/master:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]