From: Fay J. F Dr C. U. 46 S. <joh...@eg...> - 2007-09-20 18:33:14
|
Larry, What I am doing is "answering the mail" -- meeting a customer's request. What the customer is doing I do not know ... but if the customer wants a pink polka-dotted outhouse, the customer should get a pink polka-dotted outhouse ... unless it will interfere with other customers. I think in this case the customer wants "freeglut" to handle the looping control but wants to be able to break in occasionally and fiddle with things. Incidentally, I don't find "glutShutdown" in my copy of the code here. Possibly my copy is old, or possibly the change never made it into SVN. I'll check it when I get home tonight. John F. Fay Technical Fellow Jacobs Technology TEAS Group 850-883-1294=20 -----Original Message----- From: fre...@li... [mailto:fre...@li...] On Behalf Of Larry E. Ramey Sent: Thursday, September 20, 2007 1:27 PM To: FreeGLUT developers list Subject: Re: [Freeglut-developer] Feature Request [ 1546004]removefgDeinitialize from glutMainLoop 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 <joh...@eg...> To: FreeGLUT developers list <fre...@li...> 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=20 -----Original Message----- From: fre...@li... [mailto:fre...@li...] 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 <joh...@eg...> To: joh...@cy...; FreeGLUT developers list <fre...@li...> 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=20 -----Original Message----- From: fre...@li... [mailto:fre...@li...] 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 Fre...@li... 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 Fre...@li... https://lists.sourceforge.net/lists/listinfo/freeglut-developer ________________________________ Be a better Heartthrob. Get better relationship answers <http://us.rd.yahoo.com/evt=3D48255/*http://answers.yahoo.com/dir/_ylc=3D= X3o DMTI5MGx2aThyBF9TAzIxMTU1MDAzNTIEX3MDMzk2NTQ1MTAzBHNlYwNCQUJwaWxsYXJfTkl fMzYwBHNsawNQcm9kdWN0X3F1ZXN0aW9uX3BhZ2U-?link=3Dlist&sid=3D396545433> = from someone who knows. Yahoo! Answers - Check it out.=20 ------------------------------------------------------------------------ - 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 Fre...@li... https://lists.sourceforge.net/lists/listinfo/freeglut-developer ________________________________ Luggage? GPS? Comic books?=20 Check out fitting gifts for grads <http://us.rd.yahoo.com/evt=3D48249/*http://search.yahoo.com/search?fr=3D= oni _on_mail&p=3Dgraduation+gifts&cs=3Dbz> at Yahoo! Search. |