creates a new pop-up menu.


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)


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.

OpenGLContext OpenGLContext/ Lines: 21, 26, 35
OpenGL-Demo PyOpenGL-Demo/GLUT/ Lines: 232
OpenGL-Demo PyOpenGL-Demo/GLE/ Lines: 41