Tao.FreeGlut SDK Documentation

Glut.glutAddMenuEntry Method 

Adds a menu entry to the bottom of the current menu.

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

Parameters

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

glutAddMenuEntry adds a menu entry to the bottom of the current menu. The string name will be displayed for the newly added menu entry. If the menu entry is selected by the user, the menu's callback will be called passing val as the callback's parameter.

See Also

Glut Class | Tao.FreeGlut Namespace | glutAddSubMenu | glutChangeToMenuEntry | glutCreateMenu | glutRemoveMenuItem