glutAttachMenu – Attach the current menu to the current window.
Library
OpenGLUT – menus
Synopsis
In openglut.h Ft void Fn glutAttachMenu int button
Parameters
Bf Em
button Ef
Mouse button to bind to
Description
Associates the Bf Sy
button Ef
with the current menu in the current window.
Todo
Assumes 3 mouse buttons. (Actually Bf Sy
FREEGLUT_MAX_MENUS Ef
holds the assumed number of buttons.) Cannot bind to more buttons. Will not issue any warnings or errors if the user does not have enough buttons to reach your menu.
See Also
glutCreateMenu(3) glutSetMenu(3) glutDetachMenu,3