glutChangeToMenuEntry - Man Page

Replace a menu entry with an item.

Library

OpenGLUT - menus

Synopsis

#include <openglut.h>

void
glutChangeToMenuEntry(int item, const char *label, int value);

Parameters


item

Integer position down the list


label

Menu item text


value

Menu item callback value

Description

Walks the list of the menu items and replaces the numbered


item

in the list with the given definition. Except that it replaces a pre-existing


item,

this function is much like glutAddMenuEntry().

See Also

glutAddMenuEntry(3) glutAddSubMenu(3) glutChangeToSubMenu(3) glutRemoveMenuItem(3)

Referenced By

glutAddMenuEntry(3), glutChangeToSubMenu(3), glutRemoveMenuItem(3).