glutLeaveMainLoop man page

glutLeaveMainLoop — Breaks out of OpenGLUT's glutMainLoop()

Library

OpenGLUT - mainloop

Synopsis

#include <openglut.h>

void
glutLeaveMainLoop(void);

Description

This 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.

Todo

Could use longjmp(); see oghTakeActionOnWindowClose(). This would let us terminate the entire loop immediately.

See Also

glutMainLoop(3) exit(3)

 

Referenced By

glutMainLoop(3), glutMainLoopEvent(3).