From 4f1f85c2317f49eecf8d2821014f120a32c522f6 Mon Sep 17 00:00:00 2001 From: dcnieho Date: Wed, 13 Feb 2013 09:48:51 +0000 Subject: [PATCH] api doc for glutWMClosefunc was wrong.... git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1503 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/web-src/docs/api.php | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/freeglut/web-src/docs/api.php b/freeglut/web-src/docs/api.php index fddcf1a..f8c4585 100644 --- a/freeglut/web-src/docs/api.php +++ b/freeglut/web-src/docs/api.php @@ -898,16 +898,12 @@ later time point.
Freeglut sets the current window to the window which is about to be closed when the callback is invoked. The window can thus be retrieved in the callback using glutGetWindow.
-Please note that other further developments of GLUT provide a -glutWMCloseFunc. For compatibility, FreeGLUT also -provides this function. It is however an alias to -glutCloseFunc. Users looking to prevent FreeGLUT from -exiting when a window is closed, as was made possible with -glutWMCloseFunc by that callback's designer should look into -using glutSetOption to set GLUT_ACTION_ON_WINDOW_CLOSE to -GLUT_ACTION_GLUTMAINLOOP_RETURNS or -GLUT_ACTION_CONTINUE_EXECUTION. This will prevent the -application from exiting when a window is closed. +Users looking to prevent FreeGLUT from exiting when a window is +closed, should look into using glutSetOption to set +GLUT_ACTION_ON_WINDOW_CLOSE. Some settings will prevent the +application from exiting when a window is closed.
+Please note that glutWMCloseFunc, a deprecated function, is an +alias to glutCloseFunc.

Changes From GLUT