How do I use GTK and glut together?
问题 I know that in order to write a GTK application, I write a bunch of code which describes what is put in the main window, then I call: gtk_main(); Any code statements after this do not get executed. Now let's suppose I'd like my GTK app to display something I wrote with glut, which itself contains a bunch of statements about what graphics need to be set etc. then ends with the statement: glutMainLoop(); Anything after this is not executed. So my problem is that either of these two statements