/*
* Sets the Visibility callback for the current window.
- *
- * I had to peer to GLUT sources to clean up the mess.
- * Can anyone please explain me what is going on here?!?
*/
static void fghVisibility( int status )
{
void FGAPIENTRY glutJoystickFunc( void (* callback)( unsigned int, int, int, int ), int pollInterval )
{
SET_CALLBACK( Joystick );
-
- freeglut_return_if_fail( fgStructure.Window != NULL );
-
/*
* Do not forget setting the joystick poll rate
*/
/* A. Donev: Destruction callback for menus */
void FGAPIENTRY glutMenuDestroyFunc( void (* callback)( void ) )
{
- if( fgStructure.Menu == NULL ) return;
+ if( fgStructure.Menu == NULL )
+ return;
fgStructure.Menu->Destroy = callback;
}