Tao.FreeGlut SDK Documentation

Glut.glutChangeToMenuEntry Method 

Changes the specified menu item in the current menu into a menu entry.

[Visual Basic]
Public Shared Sub glutChangeToMenuEntry( _
   ByVal entry As Integer, _
   ByVal name As String, _
   ByVal val As Integer _
)
[C#]
public static void glutChangeToMenuEntry(
   int entry,
   string name,
   int val
);

Parameters

entry
Index into the menu items of the current menu (1 is the topmost menu item).
name
string to display in the menu entry.
val
Value to return to the menu's callback function if the menu entry is selected.

Remarks

glutChangeToMenuEntry changes the specified menu entry in the current menu into a menu entry. The entry parameter determines which menu item should be changed, with one being the topmost item. entry must be between 1 and Glut.glutGet(Glut.GLUT_MENU_NUM_ITEMS) inclusive. The menu item to change does not have to be a menu entry already. The string name will be displayed for the newly changed menu entry. The val will be returned to the menu's callback if this menu entry is selected.

See Also

Glut Class | Tao.FreeGlut Namespace | glutAddMenuEntry | glutChangeToSubMenu | glutRemoveMenuItem