glutShutdown();
I posted some code a while back for this function. I thought it was agreed upon and adopted.

Am I missing something or isn't this exactly what you are asking for?

I succesfully stop and restart my graphics context using this function. (It destroys the GL context and I have to recreate it with another glutInit)

Larry


----- Original Message ----
From: Fay John F Dr CTR USAF 46 SK <john.fay.ctr@eglin.af.mil>
To: johnffay@cybertron.com; FreeGLUT developers list <freeglut-developer@lists.sourceforge.net>
Sent: Thursday, September 20, 2007 9:50:45 AM
Subject: Re: [Freeglut-developer] Feature Request [ 1546004 ] removefgDeinitialize from glutMainLoop

Don't all speak at once ...

John F. Fay
Technical Fellow
Jacobs Technology TEAS Group
850-883-1294

-----Original Message-----
From: freeglut-developer-bounces@lists.sourceforge.net
[mailto:freeglut-developer-bounces@lists.sourceforge.net] On Behalf Of
John F. Fay
Sent: Monday, September 17, 2007 9:13 PM
To: 'FreeGLUT developers list'
Subject: [Freeglut-developer] Feature Request [ 1546004 ]
removefgDeinitialize from glutMainLoop

Gentlemen,

    In the "Feature Requests" list we have the following:

I love freeglut's feature of offering glutMainLoopEvent
and a proper exit from the glutMainLoop. However, in
many cases I'd like the glutMainLoop NOT to
deinitialize the glut engine - just as
glutMainLoopEvent does not deinitialize the glut
engine. For my porposes, proper pseudo code is:

(1) initialize glut
(2) set the GLUT_ACTION_CONTINUE_OPTION
(3) create a window
(4) call glutMainLoop, which exits properly when
hitting ENTER
(5) do other computations in the main file
(6) call again glutMainLoop - activating interaction
with the same previously created window - exiting on ENTER
(7) finally call glutDeinitialize in the main() function
(8) exit

This is much more consistent: When you initialize glut
in the main() function, then one should also control
the deinitialization in the main() function.

Only change required:

remove the fgDeinitialize from the glutMainLoop

    What do people think?

- John





------------------------------------------------------------------------
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freeglut-developer mailing list
Freeglut-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freeglut-developer

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freeglut-developer mailing list
Freeglut-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freeglut-developer



Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out.