Hi-
I'm having an issue with OpenGL/GLUT. I have a command line application that I'm trying to add some graphics to in a separate window. I'm using GLUT and I can open the window fine, can draw to it just fine. I'm using a pthread to run GLUT in it's own thread so I don't have to rewrite my whole app to use GLUTs event based model...but I would like to use GLUT generated events to do things in the GLUT window, however I can't seem to get the window to respond to input...I can pass the GLUT thread commands generated in the terminal window, but when I click on the GLUT window I get the spinning ball mouse cursor and my GLUT input event handlers never get called...is this a problem with running GLUT in a pthread? or am I missing something simple?
Also I'd like to do away with GLUT if possible and use OpenGL directly, is there a tutorial on how to launch a separate window and do OpenGL in it from a terminal app?....also I really want to avoid X11 if possible.
-thanks
jason
I'm having an issue with OpenGL/GLUT. I have a command line application that I'm trying to add some graphics to in a separate window. I'm using GLUT and I can open the window fine, can draw to it just fine. I'm using a pthread to run GLUT in it's own thread so I don't have to rewrite my whole app to use GLUTs event based model...but I would like to use GLUT generated events to do things in the GLUT window, however I can't seem to get the window to respond to input...I can pass the GLUT thread commands generated in the terminal window, but when I click on the GLUT window I get the spinning ball mouse cursor and my GLUT input event handlers never get called...is this a problem with running GLUT in a pthread? or am I missing something simple?
Also I'd like to do away with GLUT if possible and use OpenGL directly, is there a tutorial on how to launch a separate window and do OpenGL in it from a terminal app?....also I really want to avoid X11 if possible.
-thanks
jason