glutCreateMenu

creates a new pop-up menu.

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

VariablesDescription
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 glutAttachMenu

Sample 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
OpenGLContext OpenGLContext/glutvrmltestingcontext.py Lines: 21, 26, 35
OpenGL-Demo PyOpenGL-Demo/GLUT/glutplane.py Lines: 232
OpenGL-Demo PyOpenGL-Demo/GLE/maintest.py Lines: 41