Re: [GtkGLExt] OpenGL rendering context - multithreading
- From: Jose Commins <axora axora net>
- To: gtkglext-list gnome org, petikemail gmail com
- Subject: Re: [GtkGLExt] OpenGL rendering context - multithreading
- Date: Mon, 01 Feb 2010 14:10:31 +0000
It depends on the render ordering and making sure the widget is
configured properly at the right place.
You should assume that most OpenGL drivers aren't thread-aware,
which is why one has to be careful on the ordering sequence of
GL-related commands. Also, if you are using a (non-timer) thread that
isn't managed by GTK to render, you should lock it or make GTK aware
that you are going to fiddle with parameters using 'gdk_threads_enter
()' etc to signal you are sending commands outside GDK.
I have put up an example of this type of thing on Sourceforge:
http://sourceforge.net/projects/gtkglapp/files/
Regards,
Jose.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]