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



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:
-- 
Javier Jardón Cabezas


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