GLUTCREATEMENU(3)

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

πŸ’– glutCreateMenu β€” bestie's guide to birthing a menu ✨

okay so real talk, this one's from OpenGLUT β€” the menus corner of the library πŸ“


🌸 NAME 🌸

glutCreateMenu β€” make a brand new menu, like, from scratch πŸ’…

πŸ“š LIBRARY πŸ“š

OpenGLUT β€” menus πŸŽ€

✨ SYNOPSIS ✨

#include <openglut.h>

int
glutCreateMenu(void( *callback )( int value ));

🫢 PARAMETERS 🫢

  • callback β€” your client hook for the shiny new menu. it's the lil function that gets pinged when somebody picks something πŸ‘‘

πŸ‘‘ DESCRIPTION πŸ‘‘

So you wanna make a menu? periodt. glutCreateMenu creates a menu with a callback bound to callback, and hands you back the menu's integer id. that's it, that's the whole vibe πŸ’–

And when the user makes a selection from this menu, callback gets invoked with the parameter value β€” and that value comes straight from the (label, value) pair you defined with glutAddMenuEntry(). so like, the value is lowkey coming from you all along 🌈

πŸ”₯ SEE ALSO πŸ”₯


that's the whole page bestie, no cap πŸ¦‹ this was UNDATED and honestly it's giving UNTITLED() energy β€” iconic, mysterious, we love her πŸ’œ