Larry,
 
    Hello and thank you for your interest.  The "TODO" list has a note that we nned to add a "glutExit" call which sounds very much like what you need--except that we haven't added it yet.
 
Everybody else,
 
    What do the rest of us think about it?
 

John F. Fay
Technical Fellow, Jacobs/Sverdrup TEAS Group
850-729-6330
john.fay@eglin.af.mil
 

 


From: freeglut-developer-admin@lists.sourceforge.net [mailto:freeglut-developer-admin@lists.sourceforge.net] On Behalf Of Larry E. Ramey
Sent: Wednesday, November 09, 2005 3:37 PM
To: freeglut-developer@lists.sourceforge.net
Subject: [Freeglut-developer] glutshutdown and restart

I have a program where I want to stop and restart the graphics context. However, freeglut locked up when I tried this. I discovered that it wasn't shutting itself down properly even though all the code already exists to do this. All I had to do was add this  function to freeglut_ext.h
 
 /*RTI HACK*/
  FGAPI void    FGAPIENTRY glutShutdown( void );
 
then in freeglut_main.c

 

void FGAPIENTRY glutShutdown( void )
{
  fgDeinitialize( );
}

 
It works fine on the two platforms that I use (linux RH9 and windoze MSVC 7.1)
 
If it is acceptable to the powers that be I would really like to see this added back into the freeglut repository so that I wouldn't have to distribute my own hacked version of freeglut out to all my users.
 
 
Larry E. Ramey
 
 


Yahoo! FareChase - Search multiple travel sites in one click.