glutAttachMenu

glutAttachMenu attaches a mouse button for the current window to the identifier of the current menu; glutDetach- Menu detaches an attached mouse button from the current window. By attaching a menu identifier to a button, the named menu will be popped up when the user presses the specified button.

void glutAttachMenu(int button);
void glutDetachMenu(int button);
The button to attach a menu or detach a menu.
botton:
GLUT_LEFT_BUTTON
GLUT_MIDDLE_BUTTON
GLUT_RIGHT_BUTTON

相關詞條

熱門詞條

聯絡我們