Brian Paul [Mon, 13 Sep 2004 18:09:00 +0000 (18:09 +0000)]
some function renaming, etc (John Fay)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@514
7f0cb862-5218-0410-a997-
914c9d46530a
Brian Paul [Fri, 10 Sep 2004 15:51:10 +0000 (15:51 +0000)]
joystick updates from John Fay
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@513
7f0cb862-5218-0410-a997-
914c9d46530a
Brian Paul [Fri, 10 Sep 2004 14:14:30 +0000 (14:14 +0000)]
updated comments from John Fay
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@512
7f0cb862-5218-0410-a997-
914c9d46530a
J.C. Jones [Wed, 11 Aug 2004 15:56:20 +0000 (15:56 +0000)]
Fix a game mode crashing bug, conditional compilation for Windows, and comment out some diagnostic prints (John Fay)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@511
7f0cb862-5218-0410-a997-
914c9d46530a
J.C. Jones [Thu, 5 Aug 2004 01:12:50 +0000 (01:12 +0000)]
Implements Richard Rauch's request that the warning about indirect rendering contexts be suppressed for his BSD operating systems.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@510
7f0cb862-5218-0410-a997-
914c9d46530a
J.C. Jones [Thu, 5 Aug 2004 01:12:13 +0000 (01:12 +0000)]
Someone used C++ style comments in a C file... tisk tisk...
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@509
7f0cb862-5218-0410-a997-
914c9d46530a
J.C. Jones [Thu, 5 Aug 2004 01:11:21 +0000 (01:11 +0000)]
Bugfix for "glutBitmapString" so that it now handles end-of-line characters properly (Richard Rauch)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@508
7f0cb862-5218-0410-a997-
914c9d46530a
J.C. Jones [Thu, 5 Aug 2004 01:10:14 +0000 (01:10 +0000)]
Incremental update ... (John Fay)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@507
7f0cb862-5218-0410-a997-
914c9d46530a
Brian Paul [Tue, 29 Jun 2004 15:50:57 +0000 (15:50 +0000)]
give menu windows the title 'freeglut menu' (helps Chromium)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@506
7f0cb862-5218-0410-a997-
914c9d46530a
Brian Paul [Tue, 29 Jun 2004 15:50:26 +0000 (15:50 +0000)]
move glXMakeCurrent() to after the point where the window's title is set (helps Chromium)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@505
7f0cb862-5218-0410-a997-
914c9d46530a
J.C. Jones [Thu, 13 May 2004 02:11:26 +0000 (02:11 +0000)]
Add one more header file to MSVC files
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@504
7f0cb862-5218-0410-a997-
914c9d46530a
J.C. Jones [Wed, 12 May 2004 00:33:12 +0000 (00:33 +0000)]
John Fay: Direct/indirect rendering context change, fix a bug that somebody reported (about needing "GLUT_XLIB_IMPLEMENTATION" defined) and remove a false deprecation of a function.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@503
7f0cb862-5218-0410-a997-
914c9d46530a
J.C. Jones [Wed, 12 May 2004 00:31:31 +0000 (00:31 +0000)]
John Fay: A bug fix re: behavior of the code when the user clicks the "x" to close a window, and commentary to a message type with fixes for a Windows event processing bug.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@502
7f0cb862-5218-0410-a997-
914c9d46530a
J.C. Jones [Wed, 12 May 2004 00:29:27 +0000 (00:29 +0000)]
John Fay: Implement the modified logic of the direct/indirect rendering context.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@501
7f0cb862-5218-0410-a997-
914c9d46530a
J.C. Jones [Wed, 12 May 2004 00:26:42 +0000 (00:26 +0000)]
John Fay: Implement the upper end of the bitmapped fonts (beyond ASCII code 127). The fonts are very close to the GLUT fonts.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@500
7f0cb862-5218-0410-a997-
914c9d46530a
J.C. Jones [Wed, 12 May 2004 00:23:00 +0000 (00:23 +0000)]
John Fay: These files implement the teapot for WINCE.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@499
7f0cb862-5218-0410-a997-
914c9d46530a
J.C. Jones [Wed, 12 May 2004 00:17:46 +0000 (00:17 +0000)]
John Fay: Remove some obsolete defined symbols.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@498
7f0cb862-5218-0410-a997-
914c9d46530a
J.C. Jones [Wed, 12 May 2004 00:17:17 +0000 (00:17 +0000)]
John Fay: Add "freeglut_glutfont_definitions.c" to the build and tell it to look in the "include" directory for the <GL/freeglut.h> file.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@497
7f0cb862-5218-0410-a997-
914c9d46530a
Steve Baker [Sun, 28 Mar 2004 15:51:33 +0000 (15:51 +0000)]
Removed unnecessary initialisation.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@494
7f0cb862-5218-0410-a997-
914c9d46530a
Steve Baker [Sun, 28 Mar 2004 15:44:22 +0000 (15:44 +0000)]
Added a cullface test.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@493
7f0cb862-5218-0410-a997-
914c9d46530a
Daniel Wagner [Mon, 22 Mar 2004 10:19:25 +0000 (10:19 +0000)]
removed .cpp file (using LoadLibrary() instead)
removed modified gx.h file
cleaned up all // and tabs
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@492
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Wed, 17 Mar 2004 04:02:21 +0000 (04:02 +0000)]
Prevent exceeding array bounds in X11 key-repeat detection
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@489
7f0cb862-5218-0410-a997-
914c9d46530a
Daniel Wagner [Tue, 16 Mar 2004 08:38:28 +0000 (08:38 +0000)]
replaced all tabs with 4 spaces
replaced all // with /* */ block
fixed freeglut_gx.cpp file with #if TARGET_HOST_WINCE
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@488
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Tue, 16 Mar 2004 00:17:11 +0000 (00:17 +0000)]
Whitespace conversion - tabs to 4 spaces
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@487
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Tue, 16 Mar 2004 00:15:05 +0000 (00:15 +0000)]
Revert X11 fgCloseWindow to 1.38 pre-offscreen implementation.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@486
7f0cb862-5218-0410-a997-
914c9d46530a
Daniel Wagner [Mon, 15 Mar 2004 15:23:29 +0000 (15:23 +0000)]
fixed mouse position and keyboard mapping.
added c-wrapper cpp file for GAPI.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@485
7f0cb862-5218-0410-a997-
914c9d46530a
Daniel Wagner [Mon, 15 Mar 2004 13:42:20 +0000 (13:42 +0000)]
added support for WindowsCE (building on top of klimt)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@484
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Mon, 15 Mar 2004 11:31:19 +0000 (11:31 +0000)]
Repeat-key handling for Win32
Utilise both FreeGLUT state and per-window filtering modes
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@483
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Mon, 15 Mar 2004 06:19:33 +0000 (06:19 +0000)]
Forgot to update the ChangeLog for the benefit of those who do not have
CVS or Web access.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@482
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Mon, 15 Mar 2004 06:16:47 +0000 (06:16 +0000)]
Completed removal of all support for the offscreen rendering.
If you wish to do offscreen supportin a portable manner, you will
no longer be able to do so with current versions of freeglut.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@481
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Mon, 15 Mar 2004 06:10:27 +0000 (06:10 +0000)]
Removed Makefile support for the offscreen demo.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@480
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Mon, 15 Mar 2004 06:08:08 +0000 (06:08 +0000)]
Removed offscreen demo program.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@479
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Mon, 15 Mar 2004 00:07:37 +0000 (00:07 +0000)]
Provide local include path to automake for GL/freeglut.h etc
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@478
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Sun, 14 Mar 2004 04:37:17 +0000 (04:37 +0000)]
Code formatting tweak
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@477
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Sun, 14 Mar 2004 04:36:02 +0000 (04:36 +0000)]
Resolution of X11 key-repeat handling
glutSetKeyRepeat is global to all FreeGLUT windows in the application
glutIgnoreKeyRepeat is a per-window over-ride
To avoid nasty global X11 state interaction, or GLUT-style
event queue filtering - the approach in FreeGLUT is to
use the current key state XQueryKeymap to detect and
ignore KeyRelease/KeyPress pairs that are auto-generated.
See also:
http://pyopengl.sourceforge.net/documentation/manual/glutSetKeyRepeat.3GLUT.xml
http://pyopengl.sourceforge.net/documentation/manual/glutIgnoreKeyRepeat.3GLUT.xml
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@476
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Sun, 14 Mar 2004 03:47:46 +0000 (03:47 +0000)]
Stripped out tabs and end-of-line whitespace
Differences are in whitespace only
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@475
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Wed, 10 Mar 2004 05:11:04 +0000 (05:11 +0000)]
Resolve [ 853044 ] FreeGLUT menus on Win32 in task bar and ALT-TAB list
CreateWindowEx(WS_EX_TOOLWINDOW,...) extended style suppresses the popup menu window from the taskbar or ALT-TAB list
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@474
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Mon, 8 Mar 2004 06:06:57 +0000 (06:06 +0000)]
ignoreKeyRepeat mode in FreeGLUT is TRUE by default
For compatibility with GLUT, the mode should be FALSE by default
This issues was probably undetected until now because ignoreKeyRepeat didn't yet work.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@473
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Mon, 8 Mar 2004 05:49:55 +0000 (05:49 +0000)]
Resolved bug #869765 glutIgnoreKeyRepeat() Fix (Win32)
glutIgnoreKeyRepeat now behaves correctly on Win32
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@472
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Mon, 8 Mar 2004 05:15:15 +0000 (05:15 +0000)]
C++ style comment converted to C style comment
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@471
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Mon, 8 Mar 2004 05:05:38 +0000 (05:05 +0000)]
Include freeglut header via <GL/freeglut.h> rather than "../include/GL/freeglut.h"
This allows some additional flexibility with file layout.
It should be the responsibility of the build environment, rather than at source level.
This change tested on MSVC 6, cygwin and mingw32 gcc and Linux gcc.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@470
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Wed, 3 Mar 2004 03:35:42 +0000 (03:35 +0000)]
According to John F. Fay:
The variable "num_axes" should be "joy->num_axes".
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@469
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Fri, 20 Feb 2004 23:31:41 +0000 (23:31 +0000)]
Removed nonstandard #warning constructs. Converted to XXX comments.
(These are warnings about gamemode features not working the same on
some systems as on others. The semantics of gamemode are dubious,
since it was never formally documented, and has for a long time
worked in different ways on different systems, so it is arguable that
there is nothing really wrong with systems that don't support
resolution-changes.)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@468
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Fri, 20 Feb 2004 05:05:35 +0000 (05:05 +0000)]
Fixed the bug where glutDisplayFunc() was effectively invoking
glutPostRedsiplay(). This is wrong on the face of it, and may be
at root for some of the annoying "timing" issues we've had with
redisplay events being called inappopriately.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@467
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Thu, 19 Feb 2004 11:13:11 +0000 (11:13 +0000)]
I had rubbed the offscreen/Makefile.am off from the shapes demo. I forgot
to remove a couple of references to the shapes.c and shapes.dsp (.dsw?)
files.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@466
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Thu, 19 Feb 2004 10:09:29 +0000 (10:09 +0000)]
Added "offscreen" demo, a very simple program that produces an onscreen
window and, upon command, renders a similar offscreen display and writes
the result to disk.
Also, modified the build structure for UNIX_X11 to autobuild the demo.
(Not done for WIN32 at this time.)
Also, forgot to previously commit the updated freeglut_ext.h include.
Eeep.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@465
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Wed, 18 Feb 2004 06:52:50 +0000 (06:52 +0000)]
Minor comment adjustments.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@464
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Wed, 18 Feb 2004 02:51:04 +0000 (02:51 +0000)]
Refinements to comments
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@463
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Sat, 14 Feb 2004 08:51:54 +0000 (08:51 +0000)]
Normalized the style of the new joystick a bit.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@462
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Sat, 14 Feb 2004 03:29:57 +0000 (03:29 +0000)]
For some reason, the X "expose" event handler was *directly* calling
the display handler in the client. (Okay, it was calling a function
that operates on the window handle.)
If you have any complexity to the display code, this can be painful
to watch. I can't think of a good reason to do the display immediately,
so I fixed the code to do a glutPostRedisplay().
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@461
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Sat, 14 Feb 2004 03:23:43 +0000 (03:23 +0000)]
A commit on behalf of John (in turn, and in part, also on behalf of
Thierry).
* Renamed some of the old PLIB functions to have glut* prefixes.
(I guess that there is some thought about exporting them to the
API.)
* Changes from Thierry for FreeBSD support, and/or results of testing?
* I re-merged an XXX comment re. NetBSD/amd64 and propogated a
comment on a duplicated #define for FreeBSD. We need the GNU
autoconfig stuff to be updated by someone who groks it, now.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@460
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Mon, 9 Feb 2004 14:54:14 +0000 (14:54 +0000)]
Commit of John's tidying-up of a comment, closing out an XXX comment that
I wrote. Thanks, John.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@459
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Sat, 7 Feb 2004 12:12:46 +0000 (12:12 +0000)]
...AND a tab snuck into my changes for GLUT_OFFSCREEN support. Mea culpa.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@458
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Sat, 7 Feb 2004 12:11:30 +0000 (12:11 +0000)]
Removed a ^M that snuck into the #pragma for the new joystick code.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@457
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Sat, 7 Feb 2004 12:10:26 +0000 (12:10 +0000)]
Ooops. We don't want people to be able to create a subwindow of an
offscreen window. (^& This is no longer permitted.
(Actually, it would be nice if it would work, but I don't think that you
can subwindow a pixmap in UNIX_X11, and assume that subwindowing offscreen
doesn't work on WIN32, either.)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@456
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Sat, 7 Feb 2004 11:36:39 +0000 (11:36 +0000)]
Added entries for the joystick updates and the offscreen experimental
support.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@455
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Sat, 7 Feb 2004 11:22:16 +0000 (11:22 +0000)]
Changed a couple of XXX comments. Added a new one. These all the nest of
#ifs in the BSD section of the new joystick code.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@454
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Sat, 7 Feb 2004 10:57:17 +0000 (10:57 +0000)]
"Heavy editing" by John to his CallbackMaker demo.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@453
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Sat, 7 Feb 2004 10:52:08 +0000 (10:52 +0000)]
John added a #pragma to the joystick code for WIN32 users.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@452
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Sat, 7 Feb 2004 10:40:59 +0000 (10:40 +0000)]
Adds GLUT_OFFSCREEN as a display mode option. This includes:
* Recognizing the mode when you call glutCreateWindow().
(Offscreen looks and acts like a top-level window in many
ways.)
* During the life of the offscreen "window", various window-management
functions are modified to respect offscreen status.
(Excepting reshaping windows, there is not much useful interpretation
for managment of offscreen areas. Reshaping is possibly more work
than it's worth to support, and GLUT specs allow us to ignore the
request.)
* Cleanup for "offscreen" windows is a little different than for regular
windows.
Windows still don't start up quite ideally. Offscreen windows should
probably get a reshape event, but not a display.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@451
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Thu, 5 Feb 2004 23:31:09 +0000 (23:31 +0000)]
Big import of updated joystick code from PLIB, with permission from
Steve Baker. Most of the adaptation done by John, with a little bit
of testing and changes by Thierry Thomas and myself. Seems to compile on:
WIN32
Red Hat LINUX
FreeBSD
NetBSD/amd64
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@450
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Sun, 1 Feb 2004 09:18:59 +0000 (09:18 +0000)]
Close a bug whereby events can be delayed arbitrarily long if they get
caught between the socket and the client-side queue on X, sometime
after glutMainLoopEvent()'s loop quits and before the sleep code is
invoked.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@449
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Fri, 16 Jan 2004 12:44:50 +0000 (12:44 +0000)]
Ammended a comment on fgCheckJoystickCallback().
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@448
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Fri, 16 Jan 2004 00:22:43 +0000 (00:22 +0000)]
Minor style normalizations to minimize the diffs between *now* and from
before John's changes. No functional changes:
* Removed some hard TABs introduced.
* Removed some spaces-at-end-of-line introduced.
* A couple of function calls were touched up.
I did this separately only because I don't like messing with other people's
commits. (I don't like feeling like the style police, either, but when
I mess with the commit, there's no room for reverting my interference if
it is deemed undesirable...)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@447
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Fri, 16 Jan 2004 00:17:23 +0000 (00:17 +0000)]
Some changes from John.
The main attraction seems to be correcting a bug with the action-on-
window-close.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@446
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Mon, 5 Jan 2004 15:49:14 +0000 (15:49 +0000)]
Win32 glutIconifyWindow() patch contributed by John F. Fay
Restrict resize callbacks to visible windows
When iconified via glutIconifyWindow(), don't pass (0,0) to resize callback
Note that minimising the window via the menu or minimise button is not yet resolved.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@443
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Tue, 30 Dec 2003 11:50:58 +0000 (11:50 +0000)]
Split a few overlong lines.
Adjusted some spacing in a few spots to be more consistant with
freeglut style. Including one unindented if() body.
Eliminated a dead variable.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@437
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Tue, 30 Dec 2003 11:43:24 +0000 (11:43 +0000)]
Changed several #ifdef's to proper #if's. Eeek. Oook.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@436
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Tue, 30 Dec 2003 10:57:01 +0000 (10:57 +0000)]
Hm... I thought that I committed this last night. What's up?
This is Nigel's modified fgSleepForEvents(), essentially. Take 2.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@435
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Tue, 30 Dec 2003 02:55:39 +0000 (02:55 +0000)]
Three supported win32 compilation environments: MSVC, Cygwin and MingW32
#pragma is specific to MS compiler
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@433
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Tue, 30 Dec 2003 02:51:32 +0000 (02:51 +0000)]
Explicitly cast function pointer to (void *) in SET_WCB since all callbacks stored as void pointers
suppress gcc -Wall -pendantic "noise"
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@432
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Tue, 30 Dec 2003 02:49:56 +0000 (02:49 +0000)]
Typesafe handling of temporary window destroy callback
Move assignment out of while test, scope temporary inside loop
Be explicit about assignment/comparison in if test for gcc peace of mind
suppress gcc -Wall -pendantic "noise"
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@431
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Tue, 30 Dec 2003 02:28:13 +0000 (02:28 +0000)]
Three supported win32 compilation environments: MSVC, Cygwin and MingW32
The windows mmsystem header need only be included internally to freeglut
strdup vs _strdup is specific to the MS compiler
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@430
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Tue, 30 Dec 2003 02:24:05 +0000 (02:24 +0000)]
strlen expects (char *), rather than (unsigned char *)
suppress gcc -Wall -pendantic "noise"
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@429
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Tue, 30 Dec 2003 02:22:11 +0000 (02:22 +0000)]
Replace assignment of array to struct with field-by-field assignment
suppress gcc -Wall -pendantic "noise"
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@428
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Tue, 30 Dec 2003 02:20:03 +0000 (02:20 +0000)]
glutBitmapString and glutBitmapLength expect (unsigned char *) rather than (char *)
suppress gcc in -Wall -pendantic "noise"
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@427
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Tue, 30 Dec 2003 02:17:07 +0000 (02:17 +0000)]
Replace #ifdef WIN32 with #ifdef TARGET_HOST_WIN32, as per FreeGLUT convention
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@426
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Tue, 30 Dec 2003 02:14:54 +0000 (02:14 +0000)]
fgState.FPSInterval is unsigned int (GLuint), environment variable GLUT_FPS can be negative
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@425
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Tue, 30 Dec 2003 02:01:53 +0000 (02:01 +0000)]
OpenGL context is not made current on Win32 until fgSetWindow is called.
This resolves severe problems observed in GLUI applications.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@424
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Tue, 30 Dec 2003 01:58:19 +0000 (01:58 +0000)]
#pragma message is only understood my MS compiler
#if defined(_MSC_VER) .. #endif
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@423
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Tue, 30 Dec 2003 01:54:44 +0000 (01:54 +0000)]
Resolve bug 864978 - GLUT_OWNS_JOYSTICK unhandled
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@422
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Tue, 30 Dec 2003 01:52:07 +0000 (01:52 +0000)]
Tidy nested if/else to suppress gcc -Wall -pedantic noise
gcc suggests explicit braces to avoid ambiguous `else'
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@421
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Thu, 25 Dec 2003 14:39:38 +0000 (14:39 +0000)]
Configuring with "--enable-warnings" broke three demos:
* CallbackMaker defined, but did not use, the Joystick() function
(a callback for the freeglut joystick interface). I uncommented
the callback-registration. I assume that it was commented out
because it was spammy. (freeglut does joysticks by polling with a
timer.) Perhaps a longer interval than 10ms would be advisable?
* fractals.c used strcpy() without getting the prototype. Added
#include <string.h> at the top.
* fractals_random.c had the same problem as fractals.c.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@415
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Tue, 23 Dec 2003 08:39:44 +0000 (08:39 +0000)]
Moved the window-resize code so that it happens whenever there is a
pending resize for the window, whether or not the window is visible or
in need of a redisplay. The resize is now done before the visibility
and need-to-redisplay checks.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@414
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Mon, 22 Dec 2003 22:13:20 +0000 (22:13 +0000)]
Got rid of those int/ptr warnings on AMD64. (The code was
casting an {int} to a pointer, and later retrieving the int
by another cast. It should be safe provided that pointers
are at least as big as {int}, but GCC was giving warnings on
my system, so...fixed.)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@413
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Mon, 22 Dec 2003 21:39:18 +0000 (21:39 +0000)]
Several test-on-assignment cases have been converted to stop GCC from
complaining about if( a = get_a_value_for_a( ) ) type code.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@412
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Fri, 19 Dec 2003 01:00:07 +0000 (01:00 +0000)]
Ooops, left some cruft in a comment in the header when committing the
last patch. Cleaned up.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@411
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Fri, 19 Dec 2003 00:54:27 +0000 (00:54 +0000)]
Wrote SET_WCB() to set a window callback. This lets us out of using
the FETCH_WCB() as an lvalue (which it shouldn't, since the value of
the FETCH is cast to the correct function-pointer type).
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@410
7f0cb862-5218-0410-a997-
914c9d46530a
J.C. Jones [Mon, 15 Dec 2003 17:18:37 +0000 (17:18 +0000)]
Change the destination directory of the debug version to "Debug" (John Fay)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@409
7f0cb862-5218-0410-a997-
914c9d46530a
J.C. Jones [Sat, 13 Dec 2003 01:43:57 +0000 (01:43 +0000)]
Release 2.2.0
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@398
7f0cb862-5218-0410-a997-
914c9d46530a
Richard Rauch [Thu, 11 Dec 2003 22:13:03 +0000 (22:13 +0000)]
Stripped out TABs that got reintroduced.
There were no changes other than replacing about 10 to 12 TABs with a
visually-suitable number of spaces, so this can probably be blindly treated
as equivalent to the previous versions of the two affected files.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@397
7f0cb862-5218-0410-a997-
914c9d46530a
Christopher John Purnell [Thu, 11 Dec 2003 21:29:43 +0000 (21:29 +0000)]
The deferred window destruction code was destroying the windows in reverse
order. This cased a crash when the call to glutDestroyWindow() for a sub
windows was immediately followed by a call to glutDestroyWindow() for it's
parent. fgCloseWindows() would call fgDestroyWindow() for the parent first
fgDestroyWindws() would recurse over the children and then fgCloseWindows()
would call fgDestroyWindow() again for the child.
I've replaced the single linked list with one of our two way link list
structures. I've also moved it into fgStructure because that seemed the
consistent thing to do.
I said the the deferred windows destruction causes more problems then it
solves.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@396
7f0cb862-5218-0410-a997-
914c9d46530a
J.C. Jones [Thu, 11 Dec 2003 20:53:14 +0000 (20:53 +0000)]
Include project file in the distribution.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@395
7f0cb862-5218-0410-a997-
914c9d46530a
J.C. Jones [Thu, 11 Dec 2003 19:56:59 +0000 (19:56 +0000)]
Updates for 2.2.0 RC2
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@394
7f0cb862-5218-0410-a997-
914c9d46530a
J.C. Jones [Thu, 11 Dec 2003 19:51:11 +0000 (19:51 +0000)]
Add shapes to the Visual C workspace.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@392
7f0cb862-5218-0410-a997-
914c9d46530a
J.C. Jones [Thu, 11 Dec 2003 19:02:07 +0000 (19:02 +0000)]
Package the visual C project file with the distribution
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@391
7f0cb862-5218-0410-a997-
914c9d46530a
J.C. Jones [Thu, 11 Dec 2003 18:57:32 +0000 (18:57 +0000)]
Set the version to 2.2.0
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@390
7f0cb862-5218-0410-a997-
914c9d46530a
J.C. Jones [Thu, 11 Dec 2003 18:53:06 +0000 (18:53 +0000)]
Nigel Stewart's Win32 window-sizing fix for game mode
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@389
7f0cb862-5218-0410-a997-
914c9d46530a
J.C. Jones [Thu, 11 Dec 2003 18:49:38 +0000 (18:49 +0000)]
Disable/enable lighting in the "one.c" demo (John Fay)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@388
7f0cb862-5218-0410-a997-
914c9d46530a
J.C. Jones [Thu, 11 Dec 2003 17:05:44 +0000 (17:05 +0000)]
Add some essentials to get this program to compile (Nigel)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@387
7f0cb862-5218-0410-a997-
914c9d46530a