Signature
glutCreateMenu()-> int
glutCreateMenu(
func
)
Create a new (current) menu, return small integer identifier func( int ) -- Function taking a single integer reflecting the user's choice, the value passed to glutAddMenuEntry return menuID (small integer)
Parameters
Variables | Description |
---|---|
func |
The callback function for the menu that is called when a menu entry from the menu is selected. The value
passed to the callback is determined by the value for the selected menu entry.
|
See Also
glutCreateWindow glutDestroyMenu glutSetMenu glutAttachMenuSample Code References
The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.
glutCreateMenu