Query: glutleavemainloop
OS: centos
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
UNTITLEDLOCAL UNTITLEDNAMEglutLeaveMainLoop -- Breaks out of OpenGLUT's glutMainLoop()LIBRARYOpenGLUT - mainloopSYNOPSIS#include <openglut.h> void glutLeaveMainLoop(void);DESCRIPTIONThis function allows you to unilaterally tell OpenGLUT that you are done and wish to exit. This is useful if you have also told OpenGLUT to return to you rather than to call exit() directly.TODOCould use longjmp(); see oghTakeActionOnWindowClose(). This would let us terminate the entire loop immediately.SEE ALSOglutMainLoop(3) exit(3) Epoch