freeglut
15 years agoAdding a check for mingw64 in "freeglut_cursor.c" per e-mail from Sisyphus dated...
John F. Fay [Wed, 4 Nov 2009 00:38:55 +0000 (00:38 +0000)]
Adding a check for mingw64 in "freeglut_cursor.c" per e-mail from Sisyphus dated Thu, 29 Oct 2009 13:13:18 +1100

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@835 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoProtecting "errno" in case it is not defined per e-mail from Vincent R dated 5:37...
John F. Fay [Tue, 3 Nov 2009 13:45:32 +0000 (13:45 +0000)]
Protecting "errno" in case it is not defined per e-mail from Vincent R dated 5:37 AM, October 3, 2009.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@834 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoProtecting some preprocessor symbols that are not defined in OpenGL-ES per e-mail...
John F. Fay [Mon, 2 Nov 2009 13:42:23 +0000 (13:42 +0000)]
Protecting some preprocessor symbols that are not defined in OpenGL-ES per e-mail from Vincent R dated 5:37 AM, October 3, 2009.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@833 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoAdded support for sRGB framebuffers via the GLX_ARB_framebuffer_sRGB /
Sven Panne [Mon, 10 Aug 2009 18:39:58 +0000 (18:39 +0000)]
Added support for sRGB framebuffers via the GLX_ARB_framebuffer_sRGB /
WGL_ARB_framebuffer_sRGB extensions. Added support for context profiles via the
new parts of the GLX_ARB_create_context / WGL_ARB_create_context extensions.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@832 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoUnbreak the build for non-Windows platforms, fixing obviously untested
Sven Panne [Thu, 23 Jul 2009 19:07:34 +0000 (19:07 +0000)]
Unbreak the build for non-Windows platforms, fixing obviously untested
recent commits.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@831 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoMaking the #ifdef's around "__glutExitFunc" consistent so Cygwin will build
John F. Fay [Sun, 12 Jul 2009 14:29:16 +0000 (14:29 +0000)]
Making the #ifdef's around "__glutExitFunc" consistent so Cygwin will build

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@830 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoAdding the Cygwin/mingw documentation from Jean-Seb (see e-mail dated Thu 7/9/2009...
John F. Fay [Sun, 12 Jul 2009 14:07:19 +0000 (14:07 +0000)]
Adding the Cygwin/mingw documentation from Jean-Seb (see e-mail dated Thu 7/9/2009 5:51 PM)

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@829 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoMaking the "AT_EXIT" hack look a bit less like a copy-and-paste
John F. Fay [Fri, 10 Jul 2009 16:18:06 +0000 (16:18 +0000)]
Making the "AT_EXIT" hack look a bit less like a copy-and-paste

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@828 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoChanging the OpenWatCom support per e-mail from Paul Blew dated Thu 6/11/2009 3:35 AM
John F. Fay [Mon, 22 Jun 2009 18:54:41 +0000 (18:54 +0000)]
Changing the OpenWatCom support per e-mail from Paul Blew dated Thu 6/11/2009 3:35 AM

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@827 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoDisable the ATEXIT_HACK for Watcom, their "exit" function has a different
Sven Panne [Thu, 11 Jun 2009 08:25:25 +0000 (08:25 +0000)]
Disable the ATEXIT_HACK for Watcom, their "exit" function has a different
calling convention, leading to compilation errors.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@826 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoImproving the stroke fonts per e-mail from Fliran Echtler dated Sun 5/31/2009 3:56 AM
John F. Fay [Sun, 31 May 2009 13:00:44 +0000 (13:00 +0000)]
Improving the stroke fonts per e-mail from Fliran Echtler dated Sun 5/31/2009 3:56 AM

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@825 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoMove all files related to Visual Studio 2008 into 2 directories, one for the normal...
Sven Panne [Sun, 24 May 2009 12:31:43 +0000 (12:31 +0000)]
Move all files related to Visual Studio 2008 into 2 directories, one for the normal DLL build, and one for the static build. We should do this for other IDEs, too.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@824 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoPut static library stuff into its own solution. This way, a rather uncommon way doesn...
Sven Panne [Sat, 23 May 2009 12:50:37 +0000 (12:50 +0000)]
Put static library stuff into its own solution. This way, a rather uncommon way doesn't clutter up our normal solution, which is DLL-based.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@823 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoIgnore more files generated by Visual C++ 2008
Sven Panne [Sat, 23 May 2009 12:42:05 +0000 (12:42 +0000)]
Ignore more files generated by Visual C++ 2008

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@822 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoNormalized VC 2008 project, making the configurations more general.
Sven Panne [Sat, 23 May 2009 12:20:07 +0000 (12:20 +0000)]
Normalized VC 2008 project, making the configurations more general.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@821 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoAdded missing guard to deactivate ATEXIT_HACK on non-Windows platforms
Sven Panne [Fri, 22 May 2009 16:51:26 +0000 (16:51 +0000)]
Added missing guard to deactivate ATEXIT_HACK on non-Windows platforms

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@820 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoAvoid warnings when the ATEXIT_HACK is used with GCC, making the hack even uglier.
Sven Panne [Fri, 22 May 2009 15:50:24 +0000 (15:50 +0000)]
Avoid warnings when the ATEXIT_HACK is used with GCC, making the hack even uglier.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@819 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoAdded the ugly ATEXIT_HACK from GLUT 3.7, making freeglut binary compatible with...
Sven Panne [Fri, 22 May 2009 15:20:03 +0000 (15:20 +0000)]
Added the ugly ATEXIT_HACK from GLUT 3.7, making freeglut binary compatible with the GLUT DLLs out in the wild.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@818 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoUse our module definition file, so we get undecorated names in the resulting DLL...
Sven Panne [Fri, 22 May 2009 14:15:49 +0000 (14:15 +0000)]
Use our module definition file, so we get undecorated names in the resulting DLL, just like the classic GLUT DLL from Nate Robins.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@817 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoUse our module definition file, so we get undecorated names in the resulting DLL...
Sven Panne [Fri, 22 May 2009 14:15:10 +0000 (14:15 +0000)]
Use our module definition file, so we get undecorated names in the resulting DLL, just like the classic GLUT DLL from Nate Robins.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@816 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoRemoved obsolete lines. Fixed version number.
Sven Panne [Fri, 22 May 2009 14:12:30 +0000 (14:12 +0000)]
Removed obsolete lines. Fixed version number.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@815 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoIgnore file generated by Visual C++ 2008
Sven Panne [Fri, 22 May 2009 14:07:13 +0000 (14:07 +0000)]
Ignore file generated by Visual C++ 2008

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@814 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoWe are at version 2.6.0 now.
Sven Panne [Sun, 5 Apr 2009 13:50:17 +0000 (13:50 +0000)]
We are at version 2.6.0 now.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@813 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoAdded more project/workspace/... files to distribution.
Sven Panne [Sun, 5 Apr 2009 13:13:31 +0000 (13:13 +0000)]
Added more project/workspace/... files to distribution.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@812 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoRemoved remnants of CVS.
Sven Panne [Sun, 5 Apr 2009 12:47:32 +0000 (12:47 +0000)]
Removed remnants of CVS.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@811 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoFixed minor typo in NEWS.
Sven Panne [Sun, 5 Apr 2009 10:50:13 +0000 (10:50 +0000)]
Fixed minor typo in NEWS.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@810 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoMake the example fully OpenGL-3.1-compliant.
Sven Panne [Mon, 30 Mar 2009 16:14:49 +0000 (16:14 +0000)]
Make the example fully OpenGL-3.1-compliant.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@809 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoMake Visual C happy by including stddef.h and explicitly marking some literals as...
Sven Panne [Fri, 27 Mar 2009 16:20:40 +0000 (16:20 +0000)]
Make Visual C happy by including stddef.h and explicitly marking some literals as float.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@808 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoSynched ChangeLog with latest changes
Sven Panne [Thu, 26 Mar 2009 16:19:26 +0000 (16:19 +0000)]
Synched ChangeLog with latest changes

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@807 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoUnbreak the build: C++ style comments are not allowed in ISO C90
Sven Panne [Thu, 26 Mar 2009 16:12:42 +0000 (16:12 +0000)]
Unbreak the build: C++ style comments are not allowed in ISO C90

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@806 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoFixing "freeglut_input_devices.c" for MSVS2005 and later per e-mail from Diederick...
John F. Fay [Thu, 19 Mar 2009 14:55:14 +0000 (14:55 +0000)]
Fixing "freeglut_input_devices.c" for MSVS2005 and later per e-mail from Diederick Niehorster dated Thu 3/19/2009 6:57 AM

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@805 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoRemoving some build warnings from deprecated functions for VS2008 per e-mail from...
John F. Fay [Tue, 17 Mar 2009 17:19:05 +0000 (17:19 +0000)]
Removing some build warnings from deprecated functions for VS2008 per e-mail from Diederick Niehorster dated Tue 3/10/2009

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@804 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoAdding Visual Studio 2008 solution and project files
John F. Fay [Tue, 17 Mar 2009 15:43:25 +0000 (15:43 +0000)]
Adding Visual Studio 2008 solution and project files

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@803 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoSet the default number of samples per pixel to 4 and actually use the value set
Sven Panne [Mon, 16 Mar 2009 17:53:54 +0000 (17:53 +0000)]
Set the default number of samples per pixel to 4 and actually use the value set
with glutSetOption(GLUT_MULTISAMPLE,...) in Windows code. Previously the Windows
code used a hardwired value of 4 and the GLX code had a default of 0, neither
made much sense. Similarly, set the default number of auxiliary buffers to 1 and
use that value when GLUT_AUX is used. Note: There latter token has the same
value as GLUT_AUX1, and for historical reasons we seem to have 2 APIs to set the
number of auxiliary buffers: Explicitly using GLUT_AUX1 ... GLUT_AUX4, and using
a combination of GLUT_AUX with glutSetOption. The default of 1 ensures
consistent behaviour in both cases.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@802 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoAdded GLUT_AUX and GLUT_MULTISAMPLE as possible parameters for
Sven Panne [Mon, 16 Mar 2009 17:30:37 +0000 (17:30 +0000)]
Added GLUT_AUX and GLUT_MULTISAMPLE as possible parameters for
glutGet, making things more symmetric with glutSetOption.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@801 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoAdding "GLUT_MULTISAMPLE" to "shapes" demo ... because we can (see e-mail from Dieder...
John F. Fay [Mon, 16 Mar 2009 17:28:25 +0000 (17:28 +0000)]
Adding "GLUT_MULTISAMPLE" to "shapes" demo ... because we can (see e-mail from Diederick C. Niehorster dated Mon 3/9/2009)

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@800 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoAdded missing API entries.
Sven Panne [Mon, 16 Mar 2009 16:44:36 +0000 (16:44 +0000)]
Added missing API entries.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@799 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoAdded NEWS entry for 2.6.0 release. Please review/extend/fix...
Sven Panne [Sun, 15 Mar 2009 18:12:28 +0000 (18:12 +0000)]
Added NEWS entry for 2.6.0 release. Please review/extend/fix...

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@798 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoRecreated ChangeLog via svn2cl, so we use the standard GNU format now
Sven Panne [Sun, 15 Mar 2009 17:28:14 +0000 (17:28 +0000)]
Recreated ChangeLog via svn2cl, so we use the standard GNU format now

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@797 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoAdding the "smooth_opengl3" demo
John F. Fay [Tue, 10 Mar 2009 15:25:34 +0000 (15:25 +0000)]
Adding the "smooth_opengl3" demo

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@796 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoMaking the definition of "WIN32_LEAN_AND_MEAN" conditional to enhance compatibility...
John F. Fay [Mon, 9 Mar 2009 14:41:59 +0000 (14:41 +0000)]
Making the definition of "WIN32_LEAN_AND_MEAN" conditional to enhance compatibility with GLEW per suggestion by Diederick C. Niehorster in e-mail dated Mon 3/9/2009 8:06 AM

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@794 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoSetting the "fractals" demo initial number of levels to 4 per suggestion from Diederi...
John F. Fay [Mon, 9 Mar 2009 14:32:09 +0000 (14:32 +0000)]
Setting the "fractals" demo initial number of levels to 4 per suggestion from Diederick C. Niehorster [diederick@niehorster.eu] in e-mail dated Mon 3/9/2009 5:29 AM

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@793 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoFixing Microsoft compatibility with the new "vsnprintf" by putting an underscore...
John F. Fay [Sun, 1 Mar 2009 21:23:24 +0000 (21:23 +0000)]
Fixing Microsoft compatibility with the new "vsnprintf" by putting an underscore in front of it if WIN32 is defined but __CYGWIN__ is not

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@792 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoWe do not depend on GLU anymore
Sven Panne [Sun, 1 Mar 2009 12:40:49 +0000 (12:40 +0000)]
We do not depend on GLU anymore

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@791 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoAdded notes for building under Cygwin
Sven Panne [Sun, 1 Mar 2009 12:32:03 +0000 (12:32 +0000)]
Added notes for building under Cygwin

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@790 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoTo build shared libraries on Windows, one has to declare explicitly that there are...
Sven Panne [Sun, 1 Mar 2009 11:38:18 +0000 (11:38 +0000)]
To build shared libraries on Windows, one has to declare explicitly that there are no undefined symbols during linking. No idea why, but this seems to be the only way to enable this on Cygwin via -mno-cygwin. Hopefully this won't cause problems on other platforms (which has to be tested).

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@789 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoWindows fun again: Use the correct calling convention for OpenGL extension entries.
Sven Panne [Sun, 1 Mar 2009 11:33:15 +0000 (11:33 +0000)]
Windows fun again: Use the correct calling convention for OpenGL extension entries.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@788 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoWhen -mno-cygwin is used, we get ancient GL headers, so be a bit more conservative.
Sven Panne [Sat, 28 Feb 2009 18:31:35 +0000 (18:31 +0000)]
When -mno-cygwin is used, we get ancient GL headers, so be a bit more conservative.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@787 7f0cb862-5218-0410-a997-914c9d46530a

15 years ago_CrtDumpMemoryLeaks and its header are Microsoft-specific, e.g. Cygwin doesn't provid...
Sven Panne [Sat, 28 Feb 2009 18:02:31 +0000 (18:02 +0000)]
_CrtDumpMemoryLeaks and its header are Microsoft-specific, e.g. Cygwin doesn't provide them.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@786 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoDo not try to destroy a GLX context when there is none, e.g. when glXCreateContextAtt...
Sven Panne [Sat, 28 Feb 2009 17:09:15 +0000 (17:09 +0000)]
Do not try to destroy a GLX context when there is none, e.g. when glXCreateContextAttribsARB is not there.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@785 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoUse snprintf or _snprintf instead of the potentially dangerous sprintf
Sven Panne [Sat, 28 Feb 2009 13:09:22 +0000 (13:09 +0000)]
Use snprintf or _snprintf instead of the potentially dangerous sprintf
to avoid warnings.

NOTE: Due to excessive use of #ifdefs, the joystick code is on the
border of being unmaintainable! I could only check that it compiles
cleanly on my Linux box. Others should test this on their platforms
(Windows, Mac OS X, *BSD) to make sure that nothing has been broken.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@784 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoUse vsnprintf instead of the potentially dangerous sprintf to avoid
Sven Panne [Sat, 28 Feb 2009 12:56:20 +0000 (12:56 +0000)]
Use vsnprintf instead of the potentially dangerous sprintf to avoid
warnings. Using snprintf directly would be a little bit more tricky,
because once again Microsoft decided to avoid followind standards and
provide _snprintf instead. We could use this, too, but this would
require an additional autoconf check, which I'd like to avoid, if
possible.

Note: If VS *still* issues warnings, but this time about vsnprintf,
somebody should add some pragmas or whatever is needed to shut up that
warning, it would be silly.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@783 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoPosition the distance message closer to the middle of the window, it
Sven Panne [Sat, 28 Feb 2009 12:41:17 +0000 (12:41 +0000)]
Position the distance message closer to the middle of the window, it
has been far, far off to the upper right.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@782 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoSynched version number with configure.ac. We should better remove this
Sven Panne [Sat, 28 Feb 2009 12:16:03 +0000 (12:16 +0000)]
Synched version number with configure.ac. We should better remove this
redundancy and calculate this from configure.ac directly.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@781 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoFixing the DOS/Linux line ending problems in the progs/demos/smooth_opengl3 project...
John F. Fay [Thu, 19 Feb 2009 16:53:18 +0000 (16:53 +0000)]
Fixing the DOS/Linux line ending problems in the progs/demos/smooth_opengl3 project files

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@780 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoFixing a build error caused by a variable declaration being out of place
John F. Fay [Wed, 18 Feb 2009 18:30:12 +0000 (18:30 +0000)]
Fixing a build error caused by a variable declaration being out of place

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@779 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoFinal changes to make the example fully OpenGL-3.0-compliant:
Sven Panne [Sun, 15 Feb 2009 21:12:25 +0000 (21:12 +0000)]
Final changes to make the example fully OpenGL-3.0-compliant:

 * Use vertex attribute arrays.

 * Use our own projection matrix.

 * Do not use deprecated vertex/fragment shader variables.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@778 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoUse GLSL shaders (still 1.20, though). Dump GL info.
Sven Panne [Sun, 15 Feb 2009 17:53:48 +0000 (17:53 +0000)]
Use GLSL shaders (still 1.20, though). Dump GL info.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@777 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoAdded a commandline option for 'classic' contexts. Aesthetic changes.
Sven Panne [Sun, 15 Feb 2009 14:00:45 +0000 (14:00 +0000)]
Added a commandline option for 'classic' contexts. Aesthetic changes.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@776 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoUse VBOs in new example. Added a few comments.
Sven Panne [Sun, 15 Feb 2009 00:22:55 +0000 (00:22 +0000)]
Use VBOs in new example. Added a few comments.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@775 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoInitial version of a fully OpenGL-3.0-compliant of the famous smooth.c from the
Sven Panne [Sat, 14 Feb 2009 20:38:53 +0000 (20:38 +0000)]
Initial version of a fully OpenGL-3.0-compliant of the famous smooth.c from the
Red Book. What has been done already:

   * Explicitly request a forward-compatible 3.0 context

   * Report GL errors, if any, at a few crucial places

   * Replaced gluOrtho2D with a home-grown matrix + glLoadMatrixf

What remains to be done:

   * Use vertex shaders and fragment shaders

   * Use vertex buffer objects

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@774 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoMention autogen.sh
Sven Panne [Fri, 13 Feb 2009 18:32:26 +0000 (18:32 +0000)]
Mention autogen.sh

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@773 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoSynchronized WGL behavior with GLX implementation: Do not call the new context creati...
Sven Panne [Fri, 13 Feb 2009 18:28:58 +0000 (18:28 +0000)]
Synchronized WGL behavior with GLX implementation: Do not call the new context creation API when it is not required. Fixing a bug in a previous commit on the way... :-}

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@772 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoMore refactorings: Removed useless return value. Simplified control structures even...
Sven Panne [Fri, 13 Feb 2009 18:24:46 +0000 (18:24 +0000)]
More refactorings: Removed useless return value. Simplified control structures even more.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@771 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoRefactoring only (replace nested conditionals with guard clauses), making the normal...
Sven Panne [Fri, 13 Feb 2009 18:16:41 +0000 (18:16 +0000)]
Refactoring only (replace nested conditionals with guard clauses), making the normal path of execution much clearer.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@770 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoWe have added some API entries, so we have to update library version information...
Sven Panne [Fri, 13 Feb 2009 18:05:37 +0000 (18:05 +0000)]
We have added some API entries, so we have to update library version information conforming to gnu.org/software/libtool/manual/html_node/Updating-version-info.html

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@769 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoAvoid CR\LF vs. LF troubles when using TortoiseSVN plus Cygwin.
Sven Panne [Fri, 13 Feb 2009 17:45:46 +0000 (17:45 +0000)]
Avoid CR\LF vs. LF troubles when using TortoiseSVN plus Cygwin.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@768 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoIgnore config.lt, too. It seems to be generated by recent autotools.
Sven Panne [Fri, 13 Feb 2009 17:44:22 +0000 (17:44 +0000)]
Ignore config.lt, too. It seems to be generated by recent autotools.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@767 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoAdding OpenGL 3.0 context detection for Windows per e-mail from Paul Martz dated...
John F. Fay [Fri, 13 Feb 2009 03:22:17 +0000 (03:22 +0000)]
Adding OpenGL 3.0 context detection for Windows per e-mail from Paul Martz dated Thu 2/12/2009 9:03 AM (more or less)

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@766 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoAdding some instructions about building on a *nix platform to the 'README' file
John F. Fay [Tue, 3 Feb 2009 21:22:08 +0000 (21:22 +0000)]
Adding some instructions about building on a *nix platform to the 'README' file

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@765 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoRemoving some errant tabs, fixing ticket #2137721, and adding special-key capability...
John F. Fay [Tue, 3 Feb 2009 21:08:11 +0000 (21:08 +0000)]
Removing some errant tabs, fixing ticket #2137721, and adding special-key capability to recognizing the NumLock, Delete, and keypad '5' keys

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@764 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoA further response to bug [ 1804696 ] Warnings when building on OpenSolaris -- per...
John F. Fay [Tue, 3 Feb 2009 14:31:36 +0000 (14:31 +0000)]
A further response to bug [ 1804696 ] Warnings when building on OpenSolaris -- per comment by Nigel Stewart on that bug report

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@763 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoFixing bug [ 1804696 ] Warnings when building on OpenSolaris as updated 2/2/09 by...
John F. Fay [Mon, 2 Feb 2009 22:43:50 +0000 (22:43 +0000)]
Fixing bug [ 1804696 ] Warnings when building on OpenSolaris as updated 2/2/09 by Nigel Stewart

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@762 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoYet another try to make the font definitions compile on all platforms.
Sven Panne [Thu, 20 Nov 2008 11:59:29 +0000 (11:59 +0000)]
Yet another try to make the font definitions compile on all platforms.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@761 7f0cb862-5218-0410-a997-914c9d46530a

15 years agoAllowing "freeglut" to compile without errors under *nix. Before this, there were...
John F. Fay [Mon, 17 Nov 2008 14:50:08 +0000 (14:50 +0000)]
Allowing "freeglut" to compile without errors under *nix.  Before this, there were problems with conflicting definitions of the GLUT font definitions.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@760 7f0cb862-5218-0410-a997-914c9d46530a

16 years agoOoops, forgot one file in the previous commit (fix for "--without-x").
Sven Panne [Thu, 6 Nov 2008 19:17:13 +0000 (19:17 +0000)]
Ooops, forgot one file in the previous commit (fix for "--without-x").

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@759 7f0cb862-5218-0410-a997-914c9d46530a

16 years agoUse autoconf to detect gettimeofday instead of broken #ifdef.
Sven Panne [Thu, 6 Nov 2008 19:16:33 +0000 (19:16 +0000)]
Use autoconf to detect gettimeofday instead of broken #ifdef.

Note: freeglut compiles under Cygwin now, even when "--without-x" is used for
configuration.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@758 7f0cb862-5218-0410-a997-914c9d46530a

16 years agoWe need to link against winmm under Cygwin when --without-x is used to get
Sven Panne [Thu, 6 Nov 2008 18:57:44 +0000 (18:57 +0000)]
We need to link against winmm under Cygwin when --without-x is used to get
timeBeginPeriod, timeEndPeriod, joyGetPosEx and joyGetDevCaps.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@757 7f0cb862-5218-0410-a997-914c9d46530a

16 years agoFixed first parameter of CreateWindow call, used for multisampling on Windows.
Sven Panne [Thu, 6 Nov 2008 18:29:35 +0000 (18:29 +0000)]
Fixed first parameter of CreateWindow call, used for multisampling on Windows.
It compiles, but it is otherwise untested.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@756 7f0cb862-5218-0410-a997-914c9d46530a

16 years agoBe conservative about the presence of GL_TABLE_TOO_LARGE.
Sven Panne [Wed, 5 Nov 2008 18:46:20 +0000 (18:46 +0000)]
Be conservative about the presence of GL_TABLE_TOO_LARGE.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@755 7f0cb862-5218-0410-a997-914c9d46530a

16 years agofreeglut_internal.h needs some GL types, but it is not self-contained.
Sven Panne [Wed, 5 Nov 2008 18:45:36 +0000 (18:45 +0000)]
freeglut_internal.h needs some GL types, but it is not self-contained.
TODO: Move freeglut.h #include into freeglut_internal.h itself?

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@754 7f0cb862-5218-0410-a997-914c9d46530a

16 years agoRemoved the annoying "Unable to create direct context rendering..." warning,
Sven Panne [Wed, 5 Nov 2008 18:24:43 +0000 (18:24 +0000)]
Removed the annoying "Unable to create direct context rendering..." warning,
it served no real purpose, and on some platforms there simply is no such
thing as a direct context.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@753 7f0cb862-5218-0410-a997-914c9d46530a

16 years agoIgnore *.exe
Sven Panne [Wed, 5 Nov 2008 18:16:17 +0000 (18:16 +0000)]
Ignore *.exe

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@752 7f0cb862-5218-0410-a997-914c9d46530a

16 years agoHandle new glutInitContext* API entries in glutGetProcAddress
Sven Panne [Wed, 5 Nov 2008 18:11:40 +0000 (18:11 +0000)]
Handle new glutInitContext* API entries in glutGetProcAddress

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@751 7f0cb862-5218-0410-a997-914c9d46530a

16 years agoMake freeglut compile under Cygwin, which has an ancient GLX header
Sven Panne [Wed, 5 Nov 2008 18:05:36 +0000 (18:05 +0000)]
Make freeglut compile under Cygwin, which has an ancient GLX header

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@750 7f0cb862-5218-0410-a997-914c9d46530a

16 years agoAdded OpenGL 3.0 context creation API entries
Sven Panne [Sun, 2 Nov 2008 21:30:53 +0000 (21:30 +0000)]
Added OpenGL 3.0 context creation API entries

   glutInitContextVersion,
   glutInitContextFlags

and their related constants

   GLUT_INIT_MAJOR_VERSION
   GLUT_INIT_MINOR_VERSION
   GLUT_INIT_FLAGS

   GLUT_DEBUG
   GLUT_FORWARD_COMPATIBLE

Note that this works with GLX only currently, the glutInitContext* API entries
have no effect for WGL yet.

TODO: Centralize the context creation code for WGL (the harder part) and use the
new wglCreateContextAttribsARB API entry (the easy part, re-use most of the GLX
code).

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@749 7f0cb862-5218-0410-a997-914c9d46530a

16 years agoRefactored GLX context creation into a single function, centralizing things to
Sven Panne [Sun, 2 Nov 2008 20:09:02 +0000 (20:09 +0000)]
Refactored GLX context creation into a single function, centralizing things to
be changed for OpenGL 3.0 context creation and removing some cut-n-paste.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@748 7f0cb862-5218-0410-a997-914c9d46530a

16 years agoMake a wgl/glXGetProcAddress abstraction available internally. We will need this
Sven Panne [Sun, 2 Nov 2008 19:38:05 +0000 (19:38 +0000)]
Make a wgl/glXGetProcAddress abstraction available internally. We will need this
to get the new context creation function.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@747 7f0cb862-5218-0410-a997-914c9d46530a

16 years agoDo not depend on GLU, it will vanish in the future, at least in its current
Sven Panne [Sun, 2 Nov 2008 19:26:36 +0000 (19:26 +0000)]
Do not depend on GLU, it will vanish in the future, at least in its current
form.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@746 7f0cb862-5218-0410-a997-914c9d46530a

16 years agoRemoved superfluous #includes.
Sven Panne [Sun, 2 Nov 2008 18:42:49 +0000 (18:42 +0000)]
Removed superfluous #includes.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@745 7f0cb862-5218-0410-a997-914c9d46530a

16 years agoFix for bug #1709675 ("probably not be so ISO-conformant"): The C compiler flag
Sven Panne [Sun, 2 Nov 2008 18:27:21 +0000 (18:27 +0000)]
Fix for bug #1709675 ("probably not be so ISO-conformant"): The C compiler flag
-Werror is not used by default anymore, a separate configure flag
--enable-warnings-as-errors has been introduced for this purpose, which is off
by default.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@744 7f0cb862-5218-0410-a997-914c9d46530a

16 years agoAdded AM_PROG_CC_C_O to configure.ac, removing a warning during autogen.sh. This
Sven Panne [Sun, 2 Nov 2008 18:14:02 +0000 (18:14 +0000)]
Added AM_PROG_CC_C_O to configure.ac, removing a warning during autogen.sh. This
flag seems to be necessary for per-target flags (used in demo programs)
nowadays.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@743 7f0cb862-5218-0410-a997-914c9d46530a

16 years agoImplementing a patch from Jocelyn Frechot (thank you, Jocelyn) that "should enable...
John F. Fay [Mon, 21 Jul 2008 15:00:51 +0000 (15:00 +0000)]
Implementing a patch from Jocelyn Frechot (thank you, Jocelyn) that "should enable the XInput extension management with the autotools."  See e-mail of Sun 7/20/2008 12:01 PM.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@742 7f0cb862-5218-0410-a997-914c9d46530a

16 years agoAdding "glutExit" to the functions in "fghGetProcAddress" in accordance with an e...
John F. Fay [Thu, 10 Jul 2008 15:17:10 +0000 (15:17 +0000)]
Adding "glutExit" to the functions in "fghGetProcAddress" in accordance with an e-mail from Jocelyn Frechot dated Tue 7/8/2008 12:26 PM

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@741 7f0cb862-5218-0410-a997-914c9d46530a

16 years agoAdding "SC_MONITORPOWER" and other new options to the "wParam" option list (e-mail...
John F. Fay [Sat, 5 Apr 2008 21:53:51 +0000 (21:53 +0000)]
Adding "SC_MONITORPOWER" and other new options to the "wParam" option list (e-mail from Ron Larkin, 3/17/08, 11:00 AM)

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@740 7f0cb862-5218-0410-a997-914c9d46530a

16 years agoAdding "glutFullScreenToggle" for X11 -- still needs implementation in Windows (e...
John F. Fay [Sun, 2 Dec 2007 03:50:29 +0000 (03:50 +0000)]
Adding "glutFullScreenToggle" for X11 -- still needs implementation in Windows (e-mail by Jocelyn Frechot, Sun 11/25/2007 11:29 AM)

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@738 7f0cb862-5218-0410-a997-914c9d46530a

16 years agoFixing the window position for asynchronous X11 implementations (e-mail by Jocelyn...
John F. Fay [Sat, 1 Dec 2007 23:34:55 +0000 (23:34 +0000)]
Fixing the window position for asynchronous X11 implementations (e-mail by Jocelyn Frechot, Sun 11/25/2007 11:29 AM)

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@737 7f0cb862-5218-0410-a997-914c9d46530a

16 years agoMaking a demo program that uses "glutMainLoopEvent"
John F. Fay [Mon, 26 Nov 2007 08:09:45 +0000 (08:09 +0000)]
Making a demo program that uses "glutMainLoopEvent"

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@736 7f0cb862-5218-0410-a997-914c9d46530a

16 years agoImplementing Jocelyn Frechot's changes -- see e-mail of Thursday, 11/8/2007 9:12 AM.
John F. Fay [Mon, 12 Nov 2007 04:06:19 +0000 (04:06 +0000)]
Implementing Jocelyn Frechot's changes -- see e-mail of Thursday, 11/8/2007 9:12 AM.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@735 7f0cb862-5218-0410-a997-914c9d46530a

17 years agoRemoving more Win64 build warnings from joystick code
John F. Fay [Tue, 2 Oct 2007 02:46:04 +0000 (02:46 +0000)]
Removing more Win64 build warnings from joystick code

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@733 7f0cb862-5218-0410-a997-914c9d46530a