Jump to content
  • Advertisement
Sign in to follow this  
walkingcarcass

GLUT_ACTION_ON_WINDOW_CLOSE

This topic is 4345 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi. Sorry t post this in General Programming but I got no response in the OpenGL forum. I've tried calling glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_CONTINUE_EXECUTION); or glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_GLUTMAINLOOP_RETURNS); at the start of my program. Neither seems to change the default behaviour. I've also tried calling them immediately before and after calling glutCreateWindow, still no difference -- all windows close and glutMainLoop never returns. glutCloseFunc is called properly. I can keep the windows alive by calling glutMainLoop again in this callback but then I can't close any windows! If I add a glutDestroyWindow to the glutCloseFunc then I get an infinite loop. What I really want to do is continue execution of all remaining windows. A glutCloseFunc hack is acceptable. Surely someone's managed it.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
try http://freeglut.sourceforge.net/

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!