This another way of doing but it seems as if the glutCheckLoop() and glutNWcloseFunc() is only mac X and windows…so I have to try and hack glutMainloop since I am working in Mac OS 9…do you know an easier way to hack the glutmainloop.
#ifndef GLUTCHECKLOOP
glutMainLoop(); /* This is the normal unadulterated event loop / #else
for(; {
glutCheckLoop();
/ You can put your own stuff in here if you want!!! */ } #endif
return 1;
Sorry it took me so long to answer your question… I have a program I wrote to do many other things. But when I use OpenGl to draw my 3d shape and try to quit then the whole program quit. I was trying find away to quit the glutmainloop without exist my program…I am presently expolring context windowing…hopely there is something here.