GLUTLEAVEMAINLOOP(3)

✨ GLUTLEAVEMAINLOOP(3) ✨ β€” OpenGLUT mainloop, but make it group-chat

okay bestie, welcome to the OpenGLUT mainloop page. this is literally the escape hatch. no cap. πŸ’…


πŸ’– NAME πŸ’–

glutLeaveMainLoop β€” Breaks out of OpenGLUT's glutMainLoop(). periodt. πŸŽ€

πŸ¦‹ LIBRARY πŸ¦‹

OpenGLUT - mainloop. the mainloop corner of OpenGLUT, iykyk. 🫢

✨ SYNOPSIS ✨

okay so you pull it in like this:

#include <openglut.h>

void
glutLeaveMainLoop(void);

🌸 DESCRIPTION 🌸

This function lets you unilaterally tell OpenGLUT that you are done and wish to exit. like, you're the main character here, bestie. πŸ‘‘

It's useful if you have also told OpenGLUT to return to you rather than to call exit() directly. so instead of OpenGLUT yeeting the whole process, it can come back to you. iconic. ✨

πŸ’€ TODO πŸ’€

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

not me writing a TODO that says "yeah we could just longjmp() this whole thing" 😭 it's giving "we know, we know".

🌈 SEE ALSO 🌈


πŸ’– mwah, that's the whole page! this one is stamped UNDATED and its source/version tag is UNTITLED(). slay, bye! πŸŽ€