freeglut
20 years agoNoted the release of 2.0.0
J.C. Jones [Wed, 15 Oct 2003 09:25:32 +0000 (09:25 +0000)]
Noted the release of 2.0.0

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

20 years agoVersion bump
J.C. Jones [Wed, 15 Oct 2003 09:24:08 +0000 (09:24 +0000)]
Version bump

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

20 years agoSwept the freeglut_font.c for comment cleanup:
Richard Rauch [Tue, 14 Oct 2003 00:51:00 +0000 (00:51 +0000)]
Swept the freeglut_font.c for comment cleanup:
 * Got rid of the "rewrite C as English" comments.
 * Corrected several bogus references to "carriage returns" (in strings).
   The symbols were newlines or EOLs or LFs (\n).
   They were *not* carriage returns or CRs (\r).
 * Clarified the comments on glBitmap() calls.

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

20 years agoSmall bug-fix that's been on my mind:
Richard Rauch [Mon, 13 Oct 2003 22:54:10 +0000 (22:54 +0000)]
Small bug-fix that's been on my mind:

Modified the two Fractals* demos so that they only clear (for the random
one) or redraw (for the non-random one) if there is need to do so.  (E.g.,
pressing the space bar should not clear and redraw the random fractal since
no parameters are altered.)

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

20 years agoRemoved the obsolete hack (or very ill-conceived dream), fgDisplayCursor().
Richard Rauch [Mon, 13 Oct 2003 22:36:27 +0000 (22:36 +0000)]
Removed the obsolete hack (or very ill-conceived dream), fgDisplayCursor().

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

20 years agoCleaned up some of the style issues (mostly "fluff" comments) in
Richard Rauch [Mon, 13 Oct 2003 02:09:14 +0000 (02:09 +0000)]
Cleaned up some of the style issues (mostly "fluff" comments) in
freeglut_display.c.

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

20 years agoComment-cleaning sweep.
Richard Rauch [Mon, 13 Oct 2003 02:03:09 +0000 (02:03 +0000)]
Comment-cleaning sweep.

Mostly got rid of the say-it-in-English comments that were adding 1 line
of English and 2 or 3 lines of filler for each of several lines of C code.
Updated a couple of other comments, and tweaked some white-space.

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

20 years agoCleaned up the comments a bit in the callbacks.c file (mostly removed some
Richard Rauch [Mon, 13 Oct 2003 01:21:33 +0000 (01:21 +0000)]
Cleaned up the comments a bit in the callbacks.c file (mostly removed some
of the kill-4-lines-to-translate-one-line-of-C-into-English comments).

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

20 years agoAdded all missing GLUT cursor types for X11.
Richard Rauch [Sun, 12 Oct 2003 09:36:54 +0000 (09:36 +0000)]
Added all missing GLUT cursor types for X11.

(Type NONE is not properly supported, yet.)

Corrected behavior for the several old types:
 * Wrong glyphs.
 * Reversed glyphs (left/right confusion!)

There are some remaining imperfections, but it's a lot closer to
GLUT comformity, now.

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

20 years agoThree tidying-up changes to the code of freeglut_callbacks.c;
Richard Rauch [Sat, 11 Oct 2003 12:03:34 +0000 (12:03 +0000)]
Three tidying-up changes to the code of freeglut_callbacks.c;
none of them are Earth-shattering, but as I swept through
looking somewhat more systematically for errors, I picked
these off.  See the diff's for details.

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

20 years agoFixed a basic readability/style error in the code. (Two statements per
Richard Rauch [Sat, 11 Oct 2003 11:36:11 +0000 (11:36 +0000)]
Fixed a basic readability/style error in the code.  (Two statements per
line are almost never a good idea; in this case the combined line was
past 80 columns.)

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

20 years agoAdded a safety-check on a memory allocation. (Timers were using
Richard Rauch [Sat, 11 Oct 2003 11:21:27 +0000 (11:21 +0000)]
Added a safety-check on a memory allocation.  (Timers were using
dynamic memory allocation but NOT checking the result!)

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

20 years agoCommitted two lines from John to help fix the menus a bit.
Richard Rauch [Sat, 11 Oct 2003 11:13:23 +0000 (11:13 +0000)]
Committed two lines from John to help fix the menus a bit.

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

20 years agoCheck the glutDisplayFunc() callback for being a NULL pointer. This is
Richard Rauch [Sat, 11 Oct 2003 07:44:02 +0000 (07:44 +0000)]
Check the glutDisplayFunc() callback for being a NULL pointer.  This is
illegal and is disallowed in GLUT 3.0+, so we disallow it too in
freeglut 2.0.1+

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

20 years agoApplied John's updated ReadConfigFile() changes to the fractals demos.
Richard Rauch [Thu, 9 Oct 2003 16:34:23 +0000 (16:34 +0000)]
Applied John's updated ReadConfigFile() changes to the fractals demos.

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

20 years agoFixed:
Richard Rauch [Thu, 9 Oct 2003 03:05:40 +0000 (03:05 +0000)]
Fixed:
 * glutInit() ordering w.r.t. glutInit*() and {argv} processing.
 * Aspect ratio.
 * Removed depth-buffer usage.  (Also done for Fractals in previous
   commit...)

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

20 years agoA few minor changes:
Richard Rauch [Thu, 9 Oct 2003 03:00:04 +0000 (03:00 +0000)]
A few minor changes:
 * glutInit*() calls should preceed glutInit(), per se, generally.
   This is so that glutInit()'s configuration (which picks up on user
   parameters) can override application defaults.
 * glutInit() should be called before ANY attempt to process {argv, argc}.
   This is because there may be GLUT/freeglut parameters (such as
   "-display" on X11).
 * If the window is tall and skinny, rather than short and squat, we need
   to handle aspect ratios differently.

The first is a user-interface bug.  The second is a serious bug (especially
since the demo assumes that argv[1] contains a filename).  The third is a
display bug.

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

20 years agoChanged CreateNotify (in X11 ONLY) to act like a ConfigureNotify event.
Richard Rauch [Wed, 8 Oct 2003 20:17:10 +0000 (20:17 +0000)]
Changed CreateNotify (in X11 ONLY) to act like a ConfigureNotify event.

This is done so that subwindows on X11 will get "resize" events when
they are created.  Old GLUT did this---presumably by design in order
to ensure that (a) All windows get notified of their size as soon as
the window exists, and (b) probably more importantly, so that windows
and sub-windows behave as much alike as possible.  I believe that GLUT
was right to do this, and I believe that compatibility requires this
(I have a sample program that breaks in freeglut but not GLUT without
this fix).

I did not touch the Microsoft side, because I don't know what their
OS does---nor if old GLUT was historically system-dependant about this.

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

20 years agofreeglut_menu.c:217,519,532: Fix menus to stay in the window (John Fay)
Eric Sandall [Wed, 8 Oct 2003 19:17:07 +0000 (19:17 +0000)]
freeglut_menu.c:217,519,532: Fix menus to stay in the window (John Fay)

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

20 years agoSeveral updates from John and myself.
Richard Rauch [Wed, 8 Oct 2003 16:04:58 +0000 (16:04 +0000)]
Several updates from John and myself.

The broad outlines are:

 * Color schemes are now in variables, are closer to old GLUT, and
   are system dependant (as old GLUT did).
 * You can change the font to any bitmapped font more easily, which
   can aid in finding a better approximation.  (Old GLUT does not seem
   to have used a GLUT font for the menus, which causes problems for
   us.)  The menus rescale automatically, including the triangle "arrow"
   for sub-menus.
 * Menus have real borders, and the placement of highlighting is
   much improved.

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

20 years agoFixed a bug in the menu callback behavior. Menus were not setting the
Richard Rauch [Wed, 8 Oct 2003 00:24:33 +0000 (00:24 +0000)]
Fixed a bug in the menu callback behavior.  Menus were not setting the
current window correctly.

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

20 years agofreeglut_menu.c:328 Fix submenu triangle (John Fay)
Eric Sandall [Mon, 6 Oct 2003 16:27:53 +0000 (16:27 +0000)]
freeglut_menu.c:328 Fix submenu triangle (John Fay)

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

20 years agoTweaking for menu behavior in Linux regarding mouse whatnot - John Fay
J.C. Jones [Sat, 4 Oct 2003 15:06:42 +0000 (15:06 +0000)]
Tweaking for menu behavior in Linux regarding mouse whatnot - John Fay

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

20 years agoApplied a patch from "extraeme@netbsd.org" to add joystick support.
Richard Rauch [Wed, 1 Oct 2003 16:30:25 +0000 (16:30 +0000)]
Applied a patch from "extraeme@netbsd.org" to add joystick support.
Untested, but it compiles for me.

Should also add Joystick support for older FreeBSD systems.  Also
untested.

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

20 years agoAdded support for more arbitrary number of mouse buttons (though only the
Richard Rauch [Wed, 1 Oct 2003 15:01:58 +0000 (15:01 +0000)]
Added support for more arbitrary number of mouse buttons (though only the
first three can work with menus), in X.  This closes a compatibility gap
with old GLUT, and leaves us the option of supporting scroll-wheels
properly.

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

20 years agoDon't install the demos.
Christopher John Purnell [Sat, 27 Sep 2003 12:29:03 +0000 (12:29 +0000)]
Don't install the demos.

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

20 years agoPackage the demos.dsw file.
J.C. Jones [Fri, 26 Sep 2003 18:44:06 +0000 (18:44 +0000)]
Package the demos.dsw file.

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

20 years agoDemos workspace for MSVC users
J.C. Jones [Fri, 26 Sep 2003 18:43:12 +0000 (18:43 +0000)]
Demos workspace for MSVC users

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

20 years agoCorrected a bug w.r.t. display and joystick events. When getting ready
Richard Rauch [Wed, 24 Sep 2003 06:26:36 +0000 (06:26 +0000)]
Corrected a bug w.r.t. display and joystick events.  When getting ready
to sleep, we need to go through ALL windows to check for pending joysticks
and to check for pending redisplays.  I was just going through all TOP-
LEVEL windows.  Eeek.  This won't do.

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

20 years agoadded needClear flag to take care of initial window clear and window resize clears
Brian Paul [Tue, 23 Sep 2003 14:17:13 +0000 (14:17 +0000)]
added needClear flag to take care of initial window clear and window resize clears

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

20 years agoPer Nigel Stewart's comments, converted
Richard Rauch [Tue, 23 Sep 2003 01:08:16 +0000 (01:08 +0000)]
Per Nigel Stewart's comments, converted

#ifdef TARGET_HOST_...

to:

#if TARGET_HOST_...

in src/freeglut_init.c.  These changes should not have any functional
impact at this time, but you don't want bad examples lying around to
trip people up later.

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

20 years agoFixed:
Richard Rauch [Tue, 23 Sep 2003 01:03:41 +0000 (01:03 +0000)]
Fixed:
 * GLUT_SINGLE now should behave more or less correctly.
   Thanks to Brian Paul!

 * Sleeping is now cognizant of outstanding redisplays.

 * Fractals_random has been restored more or less to as-before, save that
   it uses the more minimal glFlush() rather than glutSwapBuffers().
   glutSwapBuffers() was only required when freeglut was incorrectly
   handling promotion to double-buffering.

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

20 years agoMoved the #include/#ifdef/#define stuff up to the top.
Richard Rauch [Mon, 22 Sep 2003 19:01:55 +0000 (19:01 +0000)]
Moved the #include/#ifdef/#define stuff up to the top.

Changed #ifdef to #if, per Nigel(?)'s comment.  Ooops.

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

20 years agoFix to allow demos to compile before freeglut has been installed.
Christopher John Purnell [Mon, 22 Sep 2003 17:40:55 +0000 (17:40 +0000)]
Fix to allow demos to compile before freeglut has been installed.

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

20 years agoAdd an idle function to ensure that the screen gets drawn even when callbacks are...
J.C. Jones [Mon, 22 Sep 2003 11:30:33 +0000 (11:30 +0000)]
Add an idle function to ensure that the screen gets drawn even when callbacks are not generated by the mouse/keyboard.

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

20 years agoNote the possible buffer overflow in window_title
J.C. Jones [Sun, 21 Sep 2003 13:47:36 +0000 (13:47 +0000)]
Note the possible buffer overflow in window_title

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

20 years agoFix the window title.
J.C. Jones [Sun, 21 Sep 2003 13:36:43 +0000 (13:36 +0000)]
Fix the window title.

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

20 years agoFix window title, and ensure that the random integer is not forced to be zero (Thanks...
J.C. Jones [Sun, 21 Sep 2003 13:35:36 +0000 (13:35 +0000)]
Fix window title, and ensure that the random integer is not forced to be zero (Thanks Richard Rauch!)

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

20 years agoRichard Rauch's patch to ensure that freeglut does not use 100% CPU even while idling.
J.C. Jones [Sat, 20 Sep 2003 19:11:17 +0000 (19:11 +0000)]
Richard Rauch's patch to ensure that freeglut does not use 100% CPU even while idling.

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

20 years agoResolution for bug 809561 reported by Nigel Stewart, regarding a possible array under...
J.C. Jones [Sat, 20 Sep 2003 16:18:01 +0000 (16:18 +0000)]
Resolution for bug 809561 reported by Nigel Stewart, regarding a possible array underflow error of -1 in the event of "character" being zero.

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

20 years agoRemoved unused AC_PROG_RANLIB from configure.in
Christopher John Purnell [Sun, 14 Sep 2003 17:00:28 +0000 (17:00 +0000)]
Removed unused AC_PROG_RANLIB from configure.in
Added passing of $(X_CFLAGS) to compiler.

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

20 years agoResolve bug 806008 -- let Microsoft's compiler know to use Windows libraries even...
J.C. Jones [Sun, 14 Sep 2003 16:00:24 +0000 (16:00 +0000)]
Resolve bug 806008 -- let Microsoft's compiler know to use Windows libraries even if not using our project files.

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

20 years agoTaking care of keeping things mostly up-to-date
J.C. Jones [Sat, 13 Sep 2003 16:24:46 +0000 (16:24 +0000)]
Taking care of keeping things mostly up-to-date

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

20 years agoMost everything's been resolved for the 2.0.0 release.
J.C. Jones [Sat, 13 Sep 2003 16:09:22 +0000 (16:09 +0000)]
Most everything's been resolved for the 2.0.0 release.

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

20 years agoThierry Thomas said that FreeBSD has no machine/joystick.h, instead a sys/joystick...
J.C. Jones [Sat, 13 Sep 2003 15:48:21 +0000 (15:48 +0000)]
Thierry Thomas said that FreeBSD has no machine/joystick.h, instead a sys/joystick.h. I've made the change -- here's hoping it works.

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

20 years agoRemoved the incorrect relative path for including freeglut.h
J.C. Jones [Sat, 13 Sep 2003 13:38:04 +0000 (13:38 +0000)]
Removed the incorrect relative path for including freeglut.h

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

20 years agoMade all demos compile. Thanks to Thierry Thomas for reporting bug 802809, which...
J.C. Jones [Sat, 13 Sep 2003 13:29:35 +0000 (13:29 +0000)]
Made all demos compile. Thanks to Thierry Thomas for reporting bug 802809, which alerted that *none* of the demos compiled automatically!

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

20 years agoNigel Stewart's joystick fix (for hopefully all platforms), SourceForge bug 805481
J.C. Jones [Sat, 13 Sep 2003 13:12:26 +0000 (13:12 +0000)]
Nigel Stewart's joystick fix (for hopefully all platforms), SourceForge bug 805481

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

20 years agoFix location of the include files from a fixed to relative path. Closes bug 805477
J.C. Jones [Sat, 13 Sep 2003 13:09:06 +0000 (13:09 +0000)]
Fix location of the include files from a fixed to relative path. Closes bug 805477

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

20 years agoAdd dos line endings. Fixes bug 805476
J.C. Jones [Sat, 13 Sep 2003 13:03:30 +0000 (13:03 +0000)]
Add dos line endings. Fixes bug 805476

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

20 years agoA minor fix to that last commit.
Christopher John Purnell [Wed, 10 Sep 2003 22:33:39 +0000 (22:33 +0000)]
A minor fix to that last commit.

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

20 years agoRemoved some remaining glib depandancy.
Christopher John Purnell [Wed, 10 Sep 2003 22:30:29 +0000 (22:30 +0000)]
Removed some remaining glib depandancy.

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

20 years agoRe-add catches for the case in which a menu callback destroys the menu. - John Fay
J.C. Jones [Wed, 10 Sep 2003 15:46:12 +0000 (15:46 +0000)]
Re-add catches for the case in which a menu callback destroys the menu. - John Fay

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

20 years agoMore to fix a deinitialization related crash.
Christopher John Purnell [Tue, 9 Sep 2003 17:50:31 +0000 (17:50 +0000)]
More to fix a deinitialization related crash.

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

20 years agoFix for a deinitialization related crash.
Christopher John Purnell [Tue, 9 Sep 2003 17:40:53 +0000 (17:40 +0000)]
Fix for a deinitialization related crash.

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

20 years agoMenus should deallocate better now - John Fay
J.C. Jones [Mon, 8 Sep 2003 20:36:23 +0000 (20:36 +0000)]
Menus should deallocate better now - John Fay

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

20 years agoAdd freeglut_static.dsp to the releases
J.C. Jones [Fri, 5 Sep 2003 20:21:50 +0000 (20:21 +0000)]
Add freeglut_static.dsp to the releases

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

20 years agoMoved #ifdef for non XFree86 X11 compile.
Christopher John Purnell [Wed, 3 Sep 2003 01:56:04 +0000 (01:56 +0000)]
Moved #ifdef for non XFree86 X11 compile.

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

20 years agoFix to stop fgSetWindow(NULL) crashing on X11.
Christopher John Purnell [Tue, 2 Sep 2003 17:43:43 +0000 (17:43 +0000)]
Fix to stop fgSetWindow(NULL) crashing on X11.

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

20 years agoThese change a bunch of assignments to calls to set the current window correctly...
J.C. Jones [Fri, 29 Aug 2003 18:10:06 +0000 (18:10 +0000)]
These change a bunch of assignments to calls to set the current window correctly, and also (possibly) fixes most of the remaining menu problem. - John Fay

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

20 years agoAnother typecast bugfix from John Fay
J.C. Jones [Fri, 29 Aug 2003 15:49:40 +0000 (15:49 +0000)]
Another typecast bugfix from John Fay

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

20 years agoChanged #ifdef to #if
Christopher John Purnell [Thu, 28 Aug 2003 22:43:12 +0000 (22:43 +0000)]
Changed #ifdef to #if

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

20 years agochange the GLUT stroke function arguments from "const char *" to "const unsigned...
J.C. Jones [Thu, 28 Aug 2003 19:22:59 +0000 (19:22 +0000)]
change the GLUT stroke function arguments from "const char *" to "const unsigned char *" - John Fay

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

20 years agoChanges stroke function arguments from "const char*" to "const unsigned char *" ...
J.C. Jones [Thu, 28 Aug 2003 19:22:27 +0000 (19:22 +0000)]
Changes stroke function arguments from "const char*" to "const unsigned char *" - John Fay

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

20 years agoRemoving files from old freeglut-1.3 directory.
Christopher John Purnell [Thu, 28 Aug 2003 16:48:34 +0000 (16:48 +0000)]
Removing files from old freeglut-1.3 directory.

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

20 years agoCasting changes, John Fay
J.C. Jones [Thu, 28 Aug 2003 15:15:25 +0000 (15:15 +0000)]
Casting changes, John Fay

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

20 years agoMajor overhaul to the menu system, by John Fay
J.C. Jones [Wed, 27 Aug 2003 19:02:36 +0000 (19:02 +0000)]
Major overhaul to the menu system, by John Fay

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

20 years agoAdded double underscores to the header included macros.
Christopher John Purnell [Wed, 27 Aug 2003 16:47:14 +0000 (16:47 +0000)]
Added double underscores to the header included macros.

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

20 years agoMinor typo fix
Christopher John Purnell [Wed, 20 Aug 2003 02:02:52 +0000 (02:02 +0000)]
Minor typo fix

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

20 years agoMoving that "#if TARGET_HOST_UNIX_X11" to the correct place.
Christopher John Purnell [Tue, 19 Aug 2003 00:11:59 +0000 (00:11 +0000)]
Moving that "#if TARGET_HOST_UNIX_X11" to the correct place.

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

20 years agoGame mode fixes from Bernhard Kaindl and Eric Espie.
Christopher John Purnell [Sun, 17 Aug 2003 17:02:42 +0000 (17:02 +0000)]
Game mode fixes from Bernhard Kaindl and Eric Espie.

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

20 years agoUsing override_redirect instead of motif wm hints.
Christopher John Purnell [Tue, 5 Aug 2003 19:22:21 +0000 (19:22 +0000)]
Using override_redirect instead of motif wm hints.
It now rasies the menu windows before showing them.
Move the show to after the reshape and position so we don't get a flash of
the menu window at it's old size and position.

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

20 years agoI suspect a lot of people will not have motif installed.
Christopher John Purnell [Tue, 5 Aug 2003 16:56:30 +0000 (16:56 +0000)]
I suspect a lot of people will not have motif installed.

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

20 years ago(98) src/Makefile.am:34 Added mwmborder.c
Eric Sandall [Tue, 5 Aug 2003 15:35:57 +0000 (15:35 +0000)]
(98) src/Makefile.am:34 Added mwmborder.c
(99) src/freeglut_window.c:67  Removed #included "mwmborder.c"

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

20 years agosrc/freeglut_main.c:816 and :1571, set the current window (John F. Fay)
Eric Sandall [Tue, 5 Aug 2003 15:16:12 +0000 (15:16 +0000)]
src/freeglut_main.c:816 and :1571, set the current window (John F. Fay)

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

20 years agoAdded X11 code for glutGet(GLUT_WINDOW_BORDER_WIDTH) and
Christopher John Purnell [Mon, 4 Aug 2003 22:43:30 +0000 (22:43 +0000)]
Added X11 code for glutGet(GLUT_WINDOW_BORDER_WIDTH) and
glutGet(GLUT_WINDOW_HEADER_HEIGHT).

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

20 years agoReplacing glutGet(GLUT_WINDOW_X) and glutGet(GLUT_WINDOW_Y) on X11 with
Christopher John Purnell [Mon, 4 Aug 2003 18:56:30 +0000 (18:56 +0000)]
Replacing glutGet(GLUT_WINDOW_X) and glutGet(GLUT_WINDOW_Y) on X11 with
something that works.
Also a minor correction to the xf86vidmode autoconf stuff.

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

20 years agoKeep the X11 decoration-zapping code confined to X11-using platforms! Oops!
J.C. Jones [Mon, 4 Aug 2003 02:08:05 +0000 (02:08 +0000)]
Keep the X11 decoration-zapping code confined to X11-using platforms! Oops!

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

20 years agoMenus' decorations are removed on Linux. Not sure if we want the mwmborder.c a separa...
J.C. Jones [Mon, 4 Aug 2003 01:29:19 +0000 (01:29 +0000)]
Menus' decorations are removed on Linux. Not sure if we want the mwmborder.c a separate file or not; doing it separate for right now. Makefile was not updated, since the .c is just #included.

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

20 years agoGot rid of configure warnings when using a newer autoconf
Christopher John Purnell [Sun, 3 Aug 2003 23:14:57 +0000 (23:14 +0000)]
Got rid of configure warnings when using a newer autoconf

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

20 years agoPutting stuff back that was undone with the menu code committed.
Christopher John Purnell [Sat, 2 Aug 2003 19:53:56 +0000 (19:53 +0000)]
Putting stuff back that was undone with the menu code committed.

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

20 years agoMajor menu changes (they appear in their own window, have own rendering context)...
J.C. Jones [Sat, 2 Aug 2003 13:31:19 +0000 (13:31 +0000)]
Major menu changes (they appear in their own window, have own rendering context) by John Fay and a little by James C. Jones. They work perfectly on Win32, and work... on Linux.

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

20 years agoAdded autoconf detection for the xf86 vid mode extentions.
Christopher John Purnell [Fri, 1 Aug 2003 20:40:08 +0000 (20:40 +0000)]
Added autoconf detection for the xf86 vid mode extentions.

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

20 years agosrc/freeglut_window.c:551 Removed extra carriage return for Windows users
Eric Sandall [Fri, 1 Aug 2003 19:28:21 +0000 (19:28 +0000)]
src/freeglut_window.c:551  Removed extra carriage return for Windows users
(John F. Fay)

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

20 years agoCredit Dave Reed for fix
Eric Sandall [Fri, 1 Aug 2003 16:53:44 +0000 (16:53 +0000)]
Credit Dave Reed for fix

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

20 years agosrc/freeglut_initial.c:91 Added check for SOLARIS OS
Eric Sandall [Fri, 1 Aug 2003 15:45:56 +0000 (15:45 +0000)]
src/freeglut_initial.c:91  Added check for SOLARIS OS

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

20 years agoThis should put an end to the font binary compatibility issue.
Christopher John Purnell [Wed, 23 Jul 2003 22:09:24 +0000 (22:09 +0000)]
This should put an end to the font binary compatibility issue.

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

20 years agosrc/freeglut_window.c Windowing fixes from John F.
Eric Sandall [Wed, 23 Jul 2003 21:44:06 +0000 (21:44 +0000)]
src/freeglut_window.c  Windowing fixes from John F.

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

20 years agodoc/Makefile.am:4 Removed trailing backslash and added an empty last line
Eric Sandall [Wed, 23 Jul 2003 20:53:45 +0000 (20:53 +0000)]
doc/Makefile.am:4  Removed trailing backslash and added an empty last line

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

20 years agono change, testing CVS
Brian Paul [Wed, 23 Jul 2003 13:48:16 +0000 (13:48 +0000)]
no change, testing CVS

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

20 years agono change, just testing CVS
Brian Paul [Tue, 22 Jul 2003 23:47:16 +0000 (23:47 +0000)]
no change, just testing CVS

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

20 years agofreeglut.lsm:3 Removed 'beta' label for next release, thanks to Bernhard Kaindl.
Eric Sandall [Tue, 22 Jul 2003 23:41:33 +0000 (23:41 +0000)]
freeglut.lsm:3  Removed 'beta' label for next release, thanks to Bernhard Kaindl.

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

20 years agoThe version info had the revision and the age transposed.
Christopher John Purnell [Mon, 21 Jul 2003 21:58:59 +0000 (21:58 +0000)]
The version info had the revision and the age transposed.

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

20 years agosrc/Makefile.am:38 Changed versioning to 11:0:8 thanks to Bernhard Kaindl
Eric Sandall [Mon, 21 Jul 2003 20:22:14 +0000 (20:22 +0000)]
src/Makefile.am:38  Changed versioning to 11:0:8 thanks to Bernhard Kaindl

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

20 years agoApplied John F. Fay's fixes to freeglut.dsp and freeglut_static.dsp
Eric Sandall [Thu, 17 Jul 2003 21:20:36 +0000 (21:20 +0000)]
Applied John F. Fay's fixes to freeglut.dsp and freeglut_static.dsp

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

20 years agoChanged the overlay (freeglut_state.c:662) to return FALSE, as it's not imp
Eric Sandall [Thu, 17 Jul 2003 20:21:23 +0000 (20:21 +0000)]
Changed the overlay (freeglut_state.c:662) to return FALSE, as it's not imp
lemented yet

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

20 years agorenamed freeglut library to glut, bumped version info to 3:8:0
Andreas Umbach [Sat, 12 Jul 2003 20:14:49 +0000 (20:14 +0000)]
renamed freeglut library to glut, bumped version info to 3:8:0

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

20 years agobumped version number to 2.0.0
Andreas Umbach [Sat, 12 Jul 2003 19:35:48 +0000 (19:35 +0000)]
bumped version number to 2.0.0

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

20 years agochanges for make dist
Andreas Umbach [Sat, 12 Jul 2003 19:34:28 +0000 (19:34 +0000)]
changes for make dist

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

20 years agoMSVC generated file
Andreas Umbach [Sat, 12 Jul 2003 19:05:39 +0000 (19:05 +0000)]
MSVC generated file

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