GLUTWINDOWSTATUSFUNC(3)
β¨ 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 π«Άβ¨
π¦ where this page comes from
- centos-stream 10: freeglut-devel 3.4.0-9.el10 Β· MIT
- centos-stream 9: freeglut-devel 3.2.1-10.el9 Β· MIT
- centos-stream 9: freeglut-devel 3.2.1-10.el9 Β· MIT
- fedora 43: freeglut-devel 3.6.0-6.fc43 Β· MIT
- fedora 43: freeglut-devel 3.6.0-6.fc43 Β· MIT
- fedora 43: freeglut-devel 3.8.0-1.fc43 Β· MIT
- fedora 43: freeglut-devel 3.8.0-1.fc43 Β· MIT
- fedora 44: freeglut-devel 3.8.0-2.fc44 Β· MIT
- fedora 44: freeglut-devel 3.8.0-2.fc44 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- Copyright 2004, the OpenGLUT contributors
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms