Glut application in a separate thread

I create an GTK+ application to draw some geophysical data. and I want to draw some data in 3D.
I load the data in the principal thread and i send them to an new trhead that contains the Glut appilcation.
IT Run Well

But i can not close the windows (1 thread) without closing the entire application.

I think that Glut send an exit signal…
And if I use Pthread exit the Glut windows will always stay on the screen and GL still running in backround

Is anyone knows a other solutions to do such things…

““Please excuse My poor frenchy english””

Seeing as you are using Gtk+, why not use GtkGLExt to render your 3D data?

Its really quite easy to use, especially if you are already familiar with Gtk+.

Hope this helps you… :slight_smile: