GLUTWINDOWSTATUSFUNC(3)

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

✨ GLUTWINDOWSTATUSFUNC(3) ✨

okay bestie, we're in the OpenGLUT manual, specifically the windowcallback section, and today's main character is glutWindowStatusFunc β€” the one that sets your window status callback. no cap, she's iconic πŸ’…


πŸŽ€ NAME πŸŽ€

glutWindowStatusFunc β€” sets the window status callback. periodt.


πŸ“š LIBRARY πŸ“š

OpenGLUT - windowcallback πŸ¦‹


🌸 SYNOPSIS 🌸

#include <openglut.h>

void
glutWindowStatusFunc(void( *callback )( int state ));

🫢 PARAMETERS 🫢

  • callback β€” your client window status hook. like, the lil function that gets called when things change. give her a job πŸ’–

πŸ’« DESCRIPTION πŸ’«

so here's the vibe: when the visibility status of your window changes, OpenGLUT either invokes the callback you registered with this function, or the Visibility callback β€” or neither, if you haven't registered either one. not me being dramatic but that's literally how it works 😭

this is different from glutVisbilityFunc() because this callback can receive three states instead of two. three! main character energy fr fr πŸ‘‘

the states are:

  • GLUT_VISIBLE β€” every pixel visible ✨
  • GLUT_FULLY_COVERED β€” every pixel obscured πŸ’€
  • GLUT_HIDDEN β€” intermediate 🌈

and the callback is bound to the current window. iykyk.


πŸ™ˆ CAVEATS πŸ™ˆ

bestie. listen. this makes glutVisibilityFunc() obsolete. like, it's giving "we don't do that anymore." dramatic but true 😭

πŸ‘€ SEE ALSO πŸ‘€


mwah πŸ’‹ that's the whole page, bestie. this lil gem came from OpenGLUT β€” source/version situation is UNDATED, and the footer just says UNTITLED(). yeah, she's mysterious like that. go slay some window callbacks 🫢✨