Mihai Draghicioiu wrote:
I have found the way. Here is my code. Any idea where I can post it as a
tutorial?
Gtk Forums? they have a section specifically for Gtk example code:
http://www.gtkforums.com/forum-15.html
http://www.gtkforums.com/
Carlos
#include stdlib.h
#include glib.h
#include
Not sure where on the wiki to post... any hints?
On Wed, Aug 12, 2009 at 8:52 AM, Emmanuel Rodriguez
emmanuel.rodrig...@gmail.com wrote:
You can submit your code to be included with the examples of gtkglarea or
use the GNOME wiki (http://live.gnome.org/).
--
Emmanuel Rodriguez
I have found the way. Here is my code. Any idea where I can post it as a
tutorial?
#include stdlib.h
#include glib.h
#include gdk/gdk.h
#include gdk/gdkgl.h
#include GL/gl.h
GdkGLWindow *glwin = NULL;
GdkGLContext *glcontext = NULL;
GMainLoop *mainloop;
static void event_func(GdkEvent *ev,
On Wed, Aug 12, 2009 at 5:09 AM, Mihai Draghicioiu
mihai.draghici...@gmail.com wrote:
I have found the way. Here is my code. Any idea where I can post it as a
tutorial?
You can submit your code to be included with the examples of gtkglarea or
use the GNOME wiki (http://live.gnome.org/).
--
Hi all! I'm making an OpenGL application based on GDK + GtkGLArea. My code
so far works, but it has two issues:
1. It does not handle events in a blocking fashion.
2. Somehow the window does not receive an Expose event.
I was told that for blocking until an event arrives, I'd have to use GLib
You don't manually loop for events, but instead set up your drawing in the
expose handle of the drawing widget. You then connect to this handle
through:
g_signal_connect(drawing_area, expose-event,
G_CALLBACK(my_expose_handler),
user_data);
See the
On Thu, Jul 23, 2009 at 5:33 AM, Mihai Draghicioiu
mihai.draghici...@gmail.com wrote:
Hi all! I'm making an OpenGL application based on GDK + GtkGLArea. My code
so far works, but it has two issues:
Do you really need to have your application based on GDK? Can't you use GTK
instead?
By using
I'd rather avoid the overhead of GTK+. My other choices were SDL and glut
(and maybe others), but none of those offer the features of GDK (and GLib!).
I have thought about using GTK+, and it's just pointless overhead, because
I'm going to use my own (OpenGL-based) UI library. Besides, it's more
On Thu, Jul 23, 2009 at 7:34 AM, Mihai Draghicioiu
mihai.draghici...@gmail.com wrote:
I'd rather avoid the overhead of GTK+. My other choices were SDL and glut
(and maybe others), but none of those offer the features of GDK (and
GLib!).
I have thought about using GTK+, and it's just