GLUTOVERLAYDISPLAYFUNC(3)

πŸ“¦
version 3.8.0 Β· 2 versions
, in centos-stream 10, centos-stream 9, fedora 43, fedora 44, opensuse-leap 16.0

πŸ’– GLUTOVERLAYDISPLAYFUNC πŸ’–

okay bestie, so this one lives in the GLUTOVERLAYDISPLAYFUNC(3) family of man pages β€” it's part of OpenGLUT, in the windowcallback library, and it's literally the page that tells you how to hand OpenGLUT a hook for redrawing your overlay. yes, that kind of overlay. let's get into it πŸŽ€


✨ SYNOPSIS ✨

#include <openglut.h>

void
glutOverlayDisplayFunc(void( *callback )( void ));

like, that's the whole thing. one function, one callback, so much potential πŸ’…


🌸 PARAMETERS 🌸

  • callback β€” your client hook for overlay redisplay. it's the lil' function OpenGLUT will call when it wants the overlay freshened up. you bring the function, it brings the moment ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea, bestie: callback gets invoked by OpenGLUT when it wants to refresh an overlay, if OpenGLUT thinks that's necessary. it's generally very similar to glutDisplayFunc(), except β€” and this is the part you actually need to know β€” it's different in these ways:

  • the redisplay is triggered differently.
  • OpenGLUT sets the layer for you. you don't gotta do it, it's handled, periodt πŸ‘‘
  • you don't need to have this callback, and you can deregister it. it's not a forever commitment, it's giving casual πŸ’…
and the key lil' detail: this callback is bound to both the current window AND the layer. both. not one, not the other. both. iykyk 🫢

πŸ’€ BUGS πŸ’€

ngl, this is the part where we hold hands and look away: OpenGLUT does not implement layers at this time. 😭 so like. yeah. the whole overlay layer thing? not a thing yet in OpenGLUT. manifesting it for later, but right now it's just not there, fr fr.


πŸ‘‘ SEE ALSO πŸ‘‘

go read these too, they're all part of the same lil' ecosystem:


and that's the page, bestie!! πŸŽ€ this absolute icon of a man page is dated UNDATED and hails from UNTITLED() β€” yeah, no title, no date, just vibes and a callback signature. slay. πŸ’–βœ¨