api doc for glutWMClosefunc was wrong....

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1503 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dcnieho 2013-02-13 09:48:51 +00:00
parent dae7120ed5
commit 4f1f85c231

View File

@ -898,16 +898,12 @@ later time point.<br />
<i>Freeglut</i> sets the <i>current window</i> to the window <i>Freeglut</i> sets the <i>current window</i> to the window
which is about to be closed when the callback is invoked. The window can which is about to be closed when the callback is invoked. The window can
thus be retrieved in the callback using <tt>glutGetWindow</tt>.<br /> thus be retrieved in the callback using <tt>glutGetWindow</tt>.<br />
Please note that other further developments of <i>GLUT</i> provide a Users looking to prevent <i>FreeGLUT</i> from exiting when a window is
<tt>glutWMCloseFunc</tt>. For compatibility, <i>FreeGLUT</i> also closed, should look into using glutSetOption to set
provides this function. It is however an alias to <tt>GLUT_ACTION_ON_WINDOW_CLOSE</tt>. Some settings will prevent the
<tt>glutCloseFunc</tt>. Users looking to prevent <i>FreeGLUT</i> from application from exiting when a window is closed.<br />
exiting when a window is closed, as was made possible with Please note that <tt>glutWMCloseFunc</tt>, a deprecated function, is an
<tt>glutWMCloseFunc</tt> by that callback's designer should look into alias to <tt>glutCloseFunc</tt>.
using glutSetOption to set <tt>GLUT_ACTION_ON_WINDOW_CLOSE</tt> to
<tt>GLUT_ACTION_GLUTMAINLOOP_RETURNS</tt> or
<tt>GLUT_ACTION_CONTINUE_EXECUTION</tt>. This will prevent the
application from exiting when a window is closed.
<p><b>Changes From GLUT</b></p> <p><b>Changes From GLUT</b></p>