From: <fa...@us...> - 2007-09-21 04:00:25
|
Revision: 724 http://freeglut.svn.sourceforge.net/freeglut/?rev=724&view=rev Author: fayjf Date: 2007-09-20 21:00:14 -0700 (Thu, 20 Sep 2007) Log Message: ----------- Implementing Larry Ramey's "glutExit" feature (see e-mails from him on 11/9/05, 6/28/06) Modified Paths: -------------- trunk/freeglut/freeglut/include/GL/freeglut_ext.h trunk/freeglut/freeglut/src/freeglut_init.c Modified: trunk/freeglut/freeglut/include/GL/freeglut_ext.h =================================================================== --- trunk/freeglut/freeglut/include/GL/freeglut_ext.h 2007-09-19 04:42:25 UTC (rev 723) +++ trunk/freeglut/freeglut/include/GL/freeglut_ext.h 2007-09-21 04:00:14 UTC (rev 724) @@ -83,6 +83,7 @@ */ FGAPI void FGAPIENTRY glutMainLoopEvent( void ); FGAPI void FGAPIENTRY glutLeaveMainLoop( void ); +FGAPI void FGAPIENTRY glutExit ( void ); /* * Window-specific callback functions, see freeglut_callbacks.c Modified: trunk/freeglut/freeglut/src/freeglut_init.c =================================================================== --- trunk/freeglut/freeglut/src/freeglut_init.c 2007-09-19 04:42:25 UTC (rev 723) +++ trunk/freeglut/freeglut/src/freeglut_init.c 2007-09-21 04:00:14 UTC (rev 724) @@ -653,6 +653,14 @@ } /* + * Undoes all the "glutInit" stuff + */ +void FGAPIENTRY glutExit ( void ) +{ + fgDeinitialize (); +} + +/* * Sets the default initial window position for new windows */ void FGAPIENTRY glutInitWindowPosition( int x, int y ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |