Moving the Windows-specific "__glutCreateMenuWIthExit" function to the Windows-specif...
[freeglut] / src / mswin / freeglut_menu_mswin.c
index 3def1b9..5731cef 100644 (file)
@@ -34,3 +34,15 @@ GLvoid fgPlatformGetGameModeVMaxExtent( SFG_Window* window, int* x, int* y )
     *x = glutGet ( GLUT_SCREEN_WIDTH );\r
     *y = glutGet ( GLUT_SCREEN_HEIGHT );\r
 }\r
+\r
+\r
+\r
+/* -- PLATFORM-SPECIFIC INTERFACE FUNCTION -------------------------------------------------- */\r
+\r
+\r
+int FGAPIENTRY __glutCreateMenuWithExit( void(* callback)( int ), void (__cdecl *exit_function)(int) )\r
+{\r
+  __glutExitFunc = exit_function;\r
+  return glutCreateMenu( callback );\r
+}\r
+\r