Commit Graph

42 Commits

Author SHA1 Message Date
puggles
3d300c8f38 Package the visual C project file with the distribution
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@391 7f0cb862-5218-0410-a997-914c9d46530a
2003-12-11 19:02:07 +00:00
puggles
de8936fe30 Disable/enable lighting in the "one.c" demo (John Fay)
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@388 7f0cb862-5218-0410-a997-914c9d46530a
2003-12-11 18:49:38 +00:00
puggles
9438a576ba Add some essentials to get this program to compile (Nigel)
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@387 7f0cb862-5218-0410-a997-914c9d46530a
2003-12-11 17:05:44 +00:00
rkrolib
3ae658e166 Two from Nigel:
* Updated shapes.c.  I think that it's just reformatting and the addition
   of some comments.

 * Added shapes.dsp, a Microsoft Visual C++ Developer Studio Project file
   for building shapes on WIN32 with MSVC++.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@381 7f0cb862-5218-0410-a997-914c9d46530a
2003-12-07 10:12:22 +00:00
rkrolib
efb92f27a8 Added a new demo (from Nigel) showing some of the basic GLUT geometry
shapes.  "shapes" is the name of the demo.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@365 7f0cb862-5218-0410-a997-914c9d46530a
2003-11-25 14:10:35 +00:00
rkrolib
b92f1915fe Removal of all remaining TABs in the freeglut *.[ch] files. (I missed a
few in the "one" demo, it seems, and some more crept back into
freeglut_(ext|font).c, presumably due to my own edits when I forgot to
use the "freeglut-c-mode" in EMACS.)


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@339 7f0cb862-5218-0410-a997-914c9d46530a
2003-11-11 11:52:14 +00:00
rkrolib
4ccdcf6f4e Moved glutInit*() functions ahead of glutInit(). (This is proper use of
glutInit() in general, since it allows the user to override settings via
{argc, argv} command-line params.)


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@338 7f0cb862-5218-0410-a997-914c9d46530a
2003-11-11 11:20:01 +00:00
rkrolib
48f65ac54d Style normalizations: Removed CRs and hard TABs mostly.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@337 7f0cb862-5218-0410-a997-914c9d46530a
2003-11-11 11:18:16 +00:00
rkrolib
b1c4e6beb8 A *.dsp file for CallbackMaker in the demos.
Plus updated *.dsp and *.dsw files to reflect the new freeglut header
file.

NOTE: The prior version of the *.dsw file does not in fact have CRs.  I
thought that it did.  For consistancy, I am not putting them in in this
version, either.  (At least one person said that his MSVC++ system is
happy with the current files.  If there are problems, we can easily add
the CRs, but that should be a separate commit...)


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@333 7f0cb862-5218-0410-a997-914c9d46530a
2003-11-10 17:04:05 +00:00
rkrolib
6829d65fb3 New demo from John: CallbackMaker.
This demo shows the use of every callback that you can register with
freeglut, and also generates event reports so that you can see what is
happening to the program as it runs.

Not much to look at, but both utilitarian and a practical example.

Please double-check that I updated everything that needs to be updated.
I reran autogen.sh and ./configure, and it built okay for me.  (^&


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@332 7f0cb862-5218-0410-a997-914c9d46530a
2003-11-10 16:01:05 +00:00
cjp
85e34f0062 Applied Braden McDaniel's non-srcdir build patch.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@326 7f0cb862-5218-0410-a997-914c9d46530a
2003-11-08 17:40:42 +00:00
rkrolib
9c070e4f9b Altered the way that the {random} value (from 0..3) is chosen.
Previously, it picked out two adjacent bits in the result of rand().
Unfortunately, these adjacent bits (at least on NetBSD) have a certain
amount of dependance.  After a period (perhaps a thousand or so?), it
starts to repeat the pattern of those two bits.  (I think; I haven't
actually tested that directly.)  This presumably is locking it into a
an an N-way attractor on the "snowflake", such that if you zoom in a
ways, you will start to see some spots *quickly* are colored, and
others are *never* colored.

What I've done now is to pick up two widely-spaced bits in a single
rand() call.  (Perhaps we would do as well to pick up something like
bit #16 from two consecutive rand() calls?)  These widely-spaced bits
have a lower statistical dependance on one another (if I can get away
with using that term for an arithmetic operation; though since stats
has more to do with sampling and less to do with true randomness, I
may be safe).

The net effect, at leats on NetBSD, is far better snowflake if you zoom
in on it.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@324 7f0cb862-5218-0410-a997-914c9d46530a
2003-11-08 01:56:45 +00:00
rkrolib
406636047f Update from John: Includes mouse button, mouse motion, and mouse wheel
support.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@301 7f0cb862-5218-0410-a997-914c9d46530a
2003-11-06 21:38:21 +00:00
rkrolib
3a18a26d74 Update from John:
I [John] added a feature to check for memory leaks under Windows.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@297 7f0cb862-5218-0410-a997-914c9d46530a
2003-11-04 15:53:49 +00:00
rkrolib
8df7ae3c29 Update from John:
I [John] converted everything to double precision to avoid compiler
warnings.  I also added a feature to check for memory leaks under
Windows and removed a memory leak (surprise!).


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@296 7f0cb862-5218-0410-a997-914c9d46530a
2003-11-04 15:32:57 +00:00
cjp
f0f690766a Added --disable-replace-glut option to autoconf configure.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@236 7f0cb862-5218-0410-a997-914c9d46530a
2003-10-21 11:41:54 +00:00
rkrolib
fd81891b21 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: https://svn.code.sf.net/p/freeglut/code/trunk@231 7f0cb862-5218-0410-a997-914c9d46530a
2003-10-13 22:54:10 +00:00
rkrolib
45899e5ed9 Applied John's updated ReadConfigFile() changes to the fractals demos.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@220 7f0cb862-5218-0410-a997-914c9d46530a
2003-10-09 16:34:23 +00:00
rkrolib
25545149da 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: https://svn.code.sf.net/p/freeglut/code/trunk@219 7f0cb862-5218-0410-a997-914c9d46530a
2003-10-09 03:05:40 +00:00
rkrolib
8bde679512 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: https://svn.code.sf.net/p/freeglut/code/trunk@218 7f0cb862-5218-0410-a997-914c9d46530a
2003-10-09 03:00:04 +00:00
cjp
e7a43013d4 Don't install the demos.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@208 7f0cb862-5218-0410-a997-914c9d46530a
2003-09-27 12:29:03 +00:00
puggles
cae77387e4 Package the demos.dsw file.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@207 7f0cb862-5218-0410-a997-914c9d46530a
2003-09-26 18:44:06 +00:00
puggles
b2f1ae6232 Demos workspace for MSVC users
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@206 7f0cb862-5218-0410-a997-914c9d46530a
2003-09-26 18:43:12 +00:00
brianp
29a1cf87af added needClear flag to take care of initial window clear and window resize clears
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@204 7f0cb862-5218-0410-a997-914c9d46530a
2003-09-23 14:17:13 +00:00
rkrolib
93d944835a 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: https://svn.code.sf.net/p/freeglut/code/trunk@202 7f0cb862-5218-0410-a997-914c9d46530a
2003-09-23 01:03:41 +00:00
cjp
a8482d4df4 Fix to allow demos to compile before freeglut has been installed.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@200 7f0cb862-5218-0410-a997-914c9d46530a
2003-09-22 17:40:55 +00:00
puggles
185eab5c78 Add an idle function to ensure that the screen gets drawn even when callbacks are not generated by the mouse/keyboard.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@199 7f0cb862-5218-0410-a997-914c9d46530a
2003-09-22 11:30:33 +00:00
puggles
4e7cf2f8da Note the possible buffer overflow in window_title
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@198 7f0cb862-5218-0410-a997-914c9d46530a
2003-09-21 13:47:36 +00:00
puggles
71fbfebd41 Fix the window title.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@197 7f0cb862-5218-0410-a997-914c9d46530a
2003-09-21 13:36:43 +00:00
puggles
c0f2a92615 Fix window title, and ensure that the random integer is not forced to be zero (Thanks Richard Rauch!)
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@196 7f0cb862-5218-0410-a997-914c9d46530a
2003-09-21 13:35:36 +00:00
cjp
5337925e88 Removed unused AC_PROG_RANLIB from configure.in
Added passing of $(X_CFLAGS) to compiler.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@193 7f0cb862-5218-0410-a997-914c9d46530a
2003-09-14 17:00:28 +00:00
puggles
b6c81be983 Removed the incorrect relative path for including freeglut.h
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@188 7f0cb862-5218-0410-a997-914c9d46530a
2003-09-13 13:38:04 +00:00
puggles
f5c85fcd2f Made all demos compile. Thanks to Thierry Thomas for reporting bug 802809, which alerted that *none* of the demos compiled automatically!
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@187 7f0cb862-5218-0410-a997-914c9d46530a
2003-09-13 13:29:35 +00:00
puggles
0cd9efa394 Fix location of the include files from a fixed to relative path. Closes bug 805477
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@185 7f0cb862-5218-0410-a997-914c9d46530a
2003-09-13 13:09:06 +00:00
andi75
c44a5c0a48 changes for make dist
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@134 7f0cb862-5218-0410-a997-914c9d46530a
2003-07-12 19:34:28 +00:00
puggles
dbbe8e5b60 Changes by John Fay
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@129 7f0cb862-5218-0410-a997-914c9d46530a
2003-07-10 11:49:39 +00:00
puggles
7b1de376d7 Changes to the Fractals demo by John Fay
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@128 7f0cb862-5218-0410-a997-914c9d46530a
2003-07-10 11:49:12 +00:00
puggles
d583f2fe7d Initial project file from John Fay
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@127 7f0cb862-5218-0410-a997-914c9d46530a
2003-07-10 11:47:35 +00:00
puggles
6cc5d428c0 Modifications from John Fay
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@126 7f0cb862-5218-0410-a997-914c9d46530a
2003-07-10 11:46:34 +00:00
sandalle
2f6a51442c * Removed genfonts/genstrokes code, updated configure.in and Makefile.in
* Moved tests/one.c into progs/demos/One/one.c, updated configure.in and Makefile.in


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@120 7f0cb862-5218-0410-a997-914c9d46530a
2003-07-02 15:28:13 +00:00
brianp
8cce55439e Lorenz attractor demo (John Fay)
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@111 7f0cb862-5218-0410-a997-914c9d46530a
2003-06-30 17:09:12 +00:00
brianp
1a5ccf545c Fractal demo (John Fay)
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@92 7f0cb862-5218-0410-a997-914c9d46530a
2003-06-20 19:31:06 +00:00