Implementing Larry Ramey's "glutExit" feature (see e-mails from him on 11/9/05, 6/28/06)

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@724 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
fayjf 2007-09-21 04:00:14 +00:00
parent 9fffa516e3
commit 55c6100806
2 changed files with 9 additions and 0 deletions

View File

@ -83,6 +83,7 @@
*/ */
FGAPI void FGAPIENTRY glutMainLoopEvent( void ); FGAPI void FGAPIENTRY glutMainLoopEvent( void );
FGAPI void FGAPIENTRY glutLeaveMainLoop( void ); FGAPI void FGAPIENTRY glutLeaveMainLoop( void );
FGAPI void FGAPIENTRY glutExit ( void );
/* /*
* Window-specific callback functions, see freeglut_callbacks.c * Window-specific callback functions, see freeglut_callbacks.c

View File

@ -652,6 +652,14 @@ void FGAPIENTRY glutInit( int* pargc, char** argv )
} }
} }
/*
* Undoes all the "glutInit" stuff
*/
void FGAPIENTRY glutExit ( void )
{
fgDeinitialize ();
}
/* /*
* Sets the default initial window position for new windows * Sets the default initial window position for new windows
*/ */