John,

Why call glutMainLoop then?

In my app I do:

 if( m_glut )
  {
    glutSetWindow( m_win );
    glutPostRedisplay();
    glutMainLoopEvent();
  }


If you want to do many loops, do it this way, if you want to let glut run things, call glutMainLoop.

Maybe I am dense but what exactly are we gaining here with this change?

Larry


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

Larry,

I think this is a different request.  At the moment the "glutMainLoop"
function automatically shuts down on exit; the request is that it not do
so, so the application can call "glutMainLoop" multiple times, carrying
the same initialization from one instance to the next.

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
Larry E. Ramey
Sent: Thursday, September 20, 2007 11:30 AM
To: FreeGLUT developers list
Subject: Re: [Freeglut-developer] Feature Request [ 1546004
]removefgDeinitialize from glutMainLoop

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
<http://us.rd.yahoo.com/evt=48255/*http://answers.yahoo.com/dir/_ylc=X3o
DMTI5MGx2aThyBF9TAzIxMTU1MDAzNTIEX3MDMzk2NTQ1MTAzBHNlYwNCQUJwaWxsYXJfTkl
fMzYwBHNsawNQcm9kdWN0X3F1ZXN0aW9uX3BhZ2U-?link=list&sid=396545433> from
someone who knows.
Yahoo! Answers - Check it out.

-------------------------------------------------------------------------
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



Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search.