GLUT exitting...

Started by
4 comments, last by Puzzler183 20 years, 6 months ago
Once I''ve called glutMainLoop, how can I exit my program via code? I don''t want to use windows specific functions although I will if I ABSOLUTELY must. So does anyone know a function I might have missed?
Advertisement
Use exit()
Uhmmm... That doesn''t seem very GLUT safe to me... I''ll look into it though.
GLUT was designed somewhat annoyingly. Something like exit is really the only way to force it to exit the loop as far as I''m aware.

Damn... Well that won''t make it leak memory or anything stupid will it provided I''ve cleaned up all the windows and menus?
Damn... Well that won''t make it leak memory or anything stupid will it provided I''ve cleaned up all the windows and menus?

This topic is closed to new replies.

Advertisement