/* * Creates a new menu object, adding it to the freeglut structure */ int FGAPIENTRY glutCreateMenu( void(* callback)( int ) ) { /* * The menu object creation code resides in freeglut_structure.c */ return fgCreateMenu( callback )->ID; }
/* * Creates a new menu object, adding it to the freeglut structure */ int FGAPIENTRY glutCreateMenu( void(* callback)( int ) ) { /* The menu object creation code resides in freeglut_structure.c */ FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutCreateMenu" ); if (fgGetActiveMenu()) fgError("Menu manipulation not allowed while menus in use."); return fgCreateMenu( callback )->ID; }
/* * Creates a new menu object, adding it to the freeglut structure */ int FGAPIENTRY glutCreateMenu( void(* callback)( int ) ) { /* The menu object creation code resides in freeglut_structure.c */ FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutCreateMenu" ); return fgCreateMenu( callback )->ID; }