GLUTDIALSFUNC(3)

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

πŸ’… GLUTDIALSFUNC(3) β€” glutDialsFunc

okay bestie, so this one is a whole page about glutDialsFunc, a lil function from OpenGLUT in the input family. it sets a dials-box button callback. yes, that's the whole name. slay. πŸŽ€


✨ NAME ✨

glutDialsFunc β€” sets a dials-box button callback. literally that's it, that's the job. πŸ’–

πŸ“š LIBRARY πŸ“š

OpenGLUT β€” the input corner of the house 🫢

🌸 SYNOPSIS 🌸

#include <openglut.h>

void
glutDialsFunc(void( *callback )( int dial, int value ));

like, you hand it a function pointer and it does the thing. periodt. ✨

🧚 PARAMETERS 🧚

  • callback β€” the client dials-box dial hook. that's your function, your little guy, the one that's gonna get called when the dials start dialing. πŸ¦‹

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the tea, bestie. a dials-and-buttons box has dials, and those dials are numbered from 1 to glutDeviceGet( GLUT_NUM_BUTTON_BOX_DIALS ), inclusive. inclusive, okay, don't forget that part, that's important. πŸ”₯

the parameters that get passed to your callback are:

  • the dial, and
  • its value

and that value? it's an absolute rotation, in degrees. not radians, not vibes, degrees. 🌈

the callback is bound to the current window. that's the whole vibe. it knows where it lives. πŸ’œ

πŸ’€ CAVEATS πŸ’€

OpenGLUT does not implement dials-box support.

so… yeah. 😭 read that again. OpenGLUT does not implement dials-box support. this function is giving "we have the API but not the thing behind the API." iconic in a tragic way, honestly. no cap. πŸ™ˆ

πŸ”— SEE ALSO πŸ”—


and that's the page, bestie!! πŸŽ€ this was UNDATED and honestly UNTITLED() too, which is very much the "no thoughts, head empty" energy of a manpage footer. but you understood it, and that's what matters. mwah. πŸ’–βœ¨πŸ¦‹