GLUTBUTTONBOXFUNC(3)
π NAME π
okay so this page is all about glutButtonBoxFunc β it sets a button-box button callback. And the manual name is GLUTBUTTONBOXFUNC(3), so you know exactly what you opened, bestie. π
π LIBRARY π
OpenGLUT - input. That's the whole vibe. π¦
πΈ SYNOPSIS πΈ
Here's the exact spell, no cap:
#include <openglut.h>
void
glutButtonBoxFunc(void( *callback )( int button, int state ));
π«Ά PARAMETERS π«Ά
callbackβ Client buttonbox button hook. π«Ά
β¨ DESCRIPTION β¨
A dials-and-buttons box has buttons numbered from 1 to this value, inclusive:
glutDeviceGet(
GLUT_NUM_BUTTON_BOX_BUTTONS)
The callback parameters are the button and its state, and that state is either GLUT_UP or GLUT_DOWN. π
The callback is bound to the current window. π
β οΈ CAVEATS β οΈ
OpenGLUT does not implement button-box support. periodt.
Also, in contrast, mouse buttons are numbered from 0 in the GLUT API. This is a wrinkle. π
π SEE ALSO π
glutDialsFunc(3)β go peek at that one too, bestie π
xoxo, your Unix bestie π β this page is from OpenGLUT, dated UNDATED, and the footer title is UNTITLED(). mwah π
π¦ 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