Moving the Windows-specific "__glutCreateMenuWIthExit" function to the Windows-specific file
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1027 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
7a945281b1
commit
fb4798198c
@ -783,14 +783,6 @@ int FGAPIENTRY glutCreateMenu( void(* callback)( int ) )
|
|||||||
return fgCreateMenu( callback )->ID;
|
return fgCreateMenu( callback )->ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if TARGET_HOST_MS_WINDOWS
|
|
||||||
int FGAPIENTRY __glutCreateMenuWithExit( void(* callback)( int ), void (__cdecl *exit_function)(int) )
|
|
||||||
{
|
|
||||||
__glutExitFunc = exit_function;
|
|
||||||
return glutCreateMenu( callback );
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Destroys a menu object, removing all references to it
|
* Destroys a menu object, removing all references to it
|
||||||
*/
|
*/
|
||||||
|
@ -34,3 +34,15 @@ GLvoid fgPlatformGetGameModeVMaxExtent( SFG_Window* window, int* x, int* y )
|
|||||||
*x = glutGet ( GLUT_SCREEN_WIDTH );
|
*x = glutGet ( GLUT_SCREEN_WIDTH );
|
||||||
*y = glutGet ( GLUT_SCREEN_HEIGHT );
|
*y = glutGet ( GLUT_SCREEN_HEIGHT );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* -- PLATFORM-SPECIFIC INTERFACE FUNCTION -------------------------------------------------- */
|
||||||
|
|
||||||
|
|
||||||
|
int FGAPIENTRY __glutCreateMenuWithExit( void(* callback)( int ), void (__cdecl *exit_function)(int) )
|
||||||
|
{
|
||||||
|
__glutExitFunc = exit_function;
|
||||||
|
return glutCreateMenu( callback );
|
||||||
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user