Commit Graph

781 Commits

Author SHA1 Message Date
fayjf
7dc47277c7 Fixing bug [ 1804696 ] Warnings when building on OpenSolaris as updated 2/2/09 by Nigel Stewart
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@762 7f0cb862-5218-0410-a997-914c9d46530a
2009-02-02 22:43:50 +00:00
spanne
f0c1c62112 Yet another try to make the font definitions compile on all platforms.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@761 7f0cb862-5218-0410-a997-914c9d46530a
2008-11-20 11:59:29 +00:00
fayjf
fe55b7f706 Allowing "freeglut" to compile without errors under *nix. Before this, there were problems with conflicting definitions of the GLUT font definitions.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@760 7f0cb862-5218-0410-a997-914c9d46530a
2008-11-17 14:50:08 +00:00
spanne
aebd3ade65 Ooops, forgot one file in the previous commit (fix for "--without-x").
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@759 7f0cb862-5218-0410-a997-914c9d46530a
2008-11-06 19:17:13 +00:00
spanne
f93b2081eb 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: https://svn.code.sf.net/p/freeglut/code/trunk@758 7f0cb862-5218-0410-a997-914c9d46530a
2008-11-06 19:16:33 +00:00
spanne
76f7bd7c9b We need to link against winmm under Cygwin when --without-x is used to get
timeBeginPeriod, timeEndPeriod, joyGetPosEx and joyGetDevCaps.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@757 7f0cb862-5218-0410-a997-914c9d46530a
2008-11-06 18:57:44 +00:00
spanne
d0554a0a52 Fixed first parameter of CreateWindow call, used for multisampling on Windows.
It compiles, but it is otherwise untested.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@756 7f0cb862-5218-0410-a997-914c9d46530a
2008-11-06 18:29:35 +00:00
spanne
095be1d2de Be conservative about the presence of GL_TABLE_TOO_LARGE.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@755 7f0cb862-5218-0410-a997-914c9d46530a
2008-11-05 18:46:20 +00:00
spanne
0828d834f8 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: https://svn.code.sf.net/p/freeglut/code/trunk@754 7f0cb862-5218-0410-a997-914c9d46530a
2008-11-05 18:45:36 +00:00
spanne
e8ffbcc5d3 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: https://svn.code.sf.net/p/freeglut/code/trunk@753 7f0cb862-5218-0410-a997-914c9d46530a
2008-11-05 18:24:43 +00:00
spanne
b1b7bc4857 Handle new glutInitContext* API entries in glutGetProcAddress
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@751 7f0cb862-5218-0410-a997-914c9d46530a
2008-11-05 18:11:40 +00:00
spanne
a74878aece Make freeglut compile under Cygwin, which has an ancient GLX header
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@750 7f0cb862-5218-0410-a997-914c9d46530a
2008-11-05 18:05:36 +00:00
spanne
a248ef8281 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: https://svn.code.sf.net/p/freeglut/code/trunk@749 7f0cb862-5218-0410-a997-914c9d46530a
2008-11-02 21:30:53 +00:00
spanne
17c757011c 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: https://svn.code.sf.net/p/freeglut/code/trunk@748 7f0cb862-5218-0410-a997-914c9d46530a
2008-11-02 20:09:02 +00:00
spanne
9e30ae3bc0 Make a wgl/glXGetProcAddress abstraction available internally. We will need this
to get the new context creation function.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@747 7f0cb862-5218-0410-a997-914c9d46530a
2008-11-02 19:38:05 +00:00
spanne
097aea69d4 Do not depend on GLU, it will vanish in the future, at least in its current
form.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@746 7f0cb862-5218-0410-a997-914c9d46530a
2008-11-02 19:26:36 +00:00
spanne
4dc68a17e3 Removed superfluous #includes.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@745 7f0cb862-5218-0410-a997-914c9d46530a
2008-11-02 18:42:49 +00:00
spanne
60227d5645 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: https://svn.code.sf.net/p/freeglut/code/trunk@744 7f0cb862-5218-0410-a997-914c9d46530a
2008-11-02 18:27:21 +00:00
spanne
a9f8ef8d89 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: https://svn.code.sf.net/p/freeglut/code/trunk@743 7f0cb862-5218-0410-a997-914c9d46530a
2008-11-02 18:14:02 +00:00
fayjf
ebaedf2da0 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: https://svn.code.sf.net/p/freeglut/code/trunk@742 7f0cb862-5218-0410-a997-914c9d46530a
2008-07-21 15:00:51 +00:00
fayjf
a3f35083ec 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: https://svn.code.sf.net/p/freeglut/code/trunk@741 7f0cb862-5218-0410-a997-914c9d46530a
2008-07-10 15:17:10 +00:00
fayjf
559a38709e 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: https://svn.code.sf.net/p/freeglut/code/trunk@740 7f0cb862-5218-0410-a997-914c9d46530a
2008-04-05 21:53:51 +00:00
fayjf
7736494329 Fixing the "Release Announcement" link
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@739 7f0cb862-5218-0410-a997-914c9d46530a
2007-12-19 13:47:21 +00:00
fayjf
4fddcfd08f Adding "glutFullScreenToggle" for X11 -- still needs implementation in Windows (e-mail by Jocelyn Frechot, Sun 11/25/2007 11:29 AM)
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@738 7f0cb862-5218-0410-a997-914c9d46530a
2007-12-02 03:50:29 +00:00
fayjf
9d2fccf853 Fixing the window position for asynchronous X11 implementations (e-mail by Jocelyn Frechot, Sun 11/25/2007 11:29 AM)
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@737 7f0cb862-5218-0410-a997-914c9d46530a
2007-12-01 23:34:55 +00:00
fayjf
872dbbc4ad Making a demo program that uses "glutMainLoopEvent"
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@736 7f0cb862-5218-0410-a997-914c9d46530a
2007-11-26 08:09:45 +00:00
fayjf
7f75464b6f Implementing Jocelyn Frechot's changes -- see e-mail of Thursday, 11/8/2007 9:12 AM.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@735 7f0cb862-5218-0410-a997-914c9d46530a
2007-11-12 04:06:19 +00:00
fayjf
afd73e99d6 Removing more Win64 build warnings from joystick code
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@733 7f0cb862-5218-0410-a997-914c9d46530a
2007-10-02 02:46:04 +00:00
puggles
7b7de85a0d SVN Update
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@732 7f0cb862-5218-0410-a997-914c9d46530a
2007-10-01 02:42:12 +00:00
fayjf
cc84d110ac Removing the final compiler warning when building on Win75 -- thank you, Antonio Mattos.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@731 7f0cb862-5218-0410-a997-914c9d46530a
2007-09-30 12:07:26 +00:00
fayjf
8b5b378c99 Removing the remaining compiler warnings from the cursor code, thanks to Antonio Mattos of Brazil. The double type-casting is needed because of a bug in the new MSVC; there is a discussion on the web on this subject.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@730 7f0cb862-5218-0410-a997-914c9d46530a
2007-09-29 13:06:38 +00:00
fayjf
0e17c966c4 Changing the cursor definition macro for newer versions of MSVC -- thanks to "Mattos" of Brazil
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@729 7f0cb862-5218-0410-a997-914c9d46530a
2007-09-25 23:09:29 +00:00
fayjf
624693e28e More changes for Jocelyn Frechot's multisampling changes. The library builds now. It still needs some testing with sample cases under X11.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@728 7f0cb862-5218-0410-a997-914c9d46530a
2007-09-25 03:54:56 +00:00
fayjf
5ab9b39a6c Fixing a remaining bug in the multisampling change ... there may be more ...
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@727 7f0cb862-5218-0410-a997-914c9d46530a
2007-09-23 14:29:06 +00:00
fayjf
5ffa7abdb6 Putting in Jocelyn Frechot's X11 visual context changes. THIS WILL BREAK THE BUILD as I am unable to test it on a Linux machine here. Somebody please test it for me.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@726 7f0cb862-5218-0410-a997-914c9d46530a
2007-09-22 02:55:37 +00:00
fayjf
74802d3f21 Removing compiler warnings in MSVC 2005 build
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@725 7f0cb862-5218-0410-a997-914c9d46530a
2007-09-21 04:32:59 +00:00
fayjf
55c6100806 Implementing Larry Ramey's "glutExit" feature (see e-mails from him on 11/9/05, 6/28/06)
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@724 7f0cb862-5218-0410-a997-914c9d46530a
2007-09-21 04:00:14 +00:00
fayjf
9fffa516e3 Implementing first part of Windows version of "GLUT_CAPTIONLESS" and "GLUT_BORDERLESS" per feature request "[ 1197016 ] need GLUT_CAPTIONLESS window option". Needs more work; menus are slightly mispositioned, X11 version does not support it, banner appears at beginning but disappears on window resize. But this is a start.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@723 7f0cb862-5218-0410-a997-914c9d46530a
2007-09-19 04:42:25 +00:00
fayjf
f5cd6eb893 Fixing Linux key-repeat mode bug reported in "[ 1796845 ] Keyboard events are lost when key repeat is enabled."
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@722 7f0cb862-5218-0410-a997-914c9d46530a
2007-09-19 04:15:14 +00:00
fayjf
7234e21a11 Fixing a build error on SuSE described in bug report "[ 1792047 ] freeglut_joystick.c error"
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@721 7f0cb862-5218-0410-a997-914c9d46530a
2007-09-19 04:10:46 +00:00
fayjf
33c99dfafe Implementing feature request "[ 947118 ] Popup menu is hidden under the TOPMOST window"
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@720 7f0cb862-5218-0410-a997-914c9d46530a
2007-09-18 03:50:24 +00:00
fayjf
4433f7f336 Adding Takeshi Nishimura's Feature Request "[ 1045202 ] Cope with a menu with many items" -- sorry it took so long.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@719 7f0cb862-5218-0410-a997-914c9d46530a
2007-09-18 03:22:11 +00:00
fayjf
179cf69128 Addressing Feature Request #1307049 that "freeglut" should return 0 if "glutGetWindow" is called without a prior call to "glutInit", rather than terminating on error.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@718 7f0cb862-5218-0410-a997-914c9d46530a
2007-09-18 02:32:53 +00:00
fayjf
f0f836b78d Added Windows "nmake" Makefiles and dependency files for the two "freeglut" projects in accordance with Feature Request #1454543
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@717 7f0cb862-5218-0410-a997-914c9d46530a
2007-09-18 02:26:39 +00:00
fayjf
146beb5f88 Fixing bug #1688954, submitted in Marcy '07. I changed "FREEGLUT" to _T("FREEGLUT") and nothing changed on my Windows XP system. If this will allow it to work on Vista, then in it goes.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@716 7f0cb862-5218-0410-a997-914c9d46530a
2007-09-16 04:16:49 +00:00
fayjf
9c2a742925 Fixing bug report #1052151 from October 2004.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@715 7f0cb862-5218-0410-a997-914c9d46530a
2007-09-16 03:57:04 +00:00
fayjf
c609d36203 Adding a Frequently Asked Questions file
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@714 7f0cb862-5218-0410-a997-914c9d46530a
2006-11-28 19:01:13 +00:00
joekrahn
8575cb31c8 Removed incorrect comment about internal WGL/ARB definitions.
I actually had put those comments in because I had meant to go back and
re-check the WGL extension. But, maybe locally defined extensions
should be kept in a separate include file?


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@713 7f0cb862-5218-0410-a997-914c9d46530a
2006-09-28 15:21:33 +00:00
joekrahn
6273d5e17b Added FREEGLUT_LIB_PRAGMAS to control MS library pragmas, and fixed NOMINMAX define.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@711 7f0cb862-5218-0410-a997-914c9d46530a
2006-09-26 03:18:18 +00:00
fayjf
6fbecfbb6f Fixing a typo bug in the display mode checking (removing multisampling if it is not supported)
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@709 7f0cb862-5218-0410-a997-914c9d46530a
2006-09-25 14:27:10 +00:00
joekrahn
490ada7091 Fixed a small mistake in the previous commit for glutGet.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@708 7f0cb862-5218-0410-a997-914c9d46530a
2006-09-25 02:41:15 +00:00
joekrahn
20684ece83 Added proper support for number of mouse buttons in X11, and
a keyboard in Windows CE. Also, several glutGet results returning
TRUE/FALSE were changed to 1/0, because the actual return type
is int (although they are technically the same in practice).


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@707 7f0cb862-5218-0410-a997-914c9d46530a
2006-09-25 02:39:33 +00:00
joekrahn
007f03763e Converted Time counter to a uniform unsigned long it value.
The initialized flag was redundant with the main Initialized flag,
and conversion of timeval to milliseconds in POSIX makes the code
cleaner. Timeval has a longer range, but the time value is already
limited by the GLUT API.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@706 7f0cb862-5218-0410-a997-914c9d46530a
2006-09-24 21:28:38 +00:00
joekrahn
d38b3eeff0 Removed WindowState.IsGameMode; it is redundant with Structure.GameModeWindow
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@705 7f0cb862-5218-0410-a997-914c9d46530a
2006-09-23 03:49:13 +00:00
fayjf
94662b8d1b Adding support for the multisampling query per bug report 1274193
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@704 7f0cb862-5218-0410-a997-914c9d46530a
2006-09-21 22:39:12 +00:00
fayjf
938aa5fa90 Fixing Bug #1398196 - Windows message argument
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@703 7f0cb862-5218-0410-a997-914c9d46530a
2006-09-21 22:06:57 +00:00
joekrahn
bedbe25db5 test (comment edited)
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@702 7f0cb862-5218-0410-a997-914c9d46530a
2006-09-21 19:20:17 +00:00
fayjf
2c85792a59 Adding temporary fix to "glutInitDisplayString" to ignore numerical assignments
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@701 7f0cb862-5218-0410-a997-914c9d46530a
2006-09-21 19:02:14 +00:00
fayjf
4f6e4144b1 Adding multisampling to *nix and Windows; also some other pixel format enhancements to Windows
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@700 7f0cb862-5218-0410-a997-914c9d46530a
2006-09-21 18:59:37 +00:00
fayjf
735a977bba Enhancing the "CallbackMaker" demo
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@699 7f0cb862-5218-0410-a997-914c9d46530a
2006-09-21 18:44:55 +00:00
fayjf
ad0d735b7f Joe Krahn's changes to "TARGET_HOST" defined constants
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@698 7f0cb862-5218-0410-a997-914c9d46530a
2006-09-21 18:39:09 +00:00
fayjf
22deb0baa1 Fixing two minor bugs, adding comments
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@697 7f0cb862-5218-0410-a997-914c9d46530a
2006-09-21 17:33:56 +00:00
fayjf
d4e5d7ed27 Changing "GameMode" to "GameModeWindow ... and testing whether I can get to SVN directly
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@696 7f0cb862-5218-0410-a997-914c9d46530a
2006-09-21 17:13:37 +00:00
spanne
3929b150ac Check fgets for return value to avoid warnings.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@695 7f0cb862-5218-0410-a997-914c9d46530a
2006-08-05 16:31:20 +00:00
spanne
e6727385dd Fixed typo in date
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@694 7f0cb862-5218-0410-a997-914c9d46530a
2006-08-05 16:29:28 +00:00
spanne
1fe75429c9 Updated build requirements for SuSE 10.1
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@693 7f0cb862-5218-0410-a997-914c9d46530a
2006-08-05 15:52:45 +00:00
spanne
9ea2a52be0 Ooops, forgot to ingore INSTALL and install-sh in previous commit...
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@692 7f0cb862-5218-0410-a997-914c9d46530a
2005-10-12 14:22:04 +00:00
spanne
f3d8a6c845 Moved GLUT_INIT_STATE to <GL/freeglut_ext.h>, it is not part of the
original GLUT.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@691 7f0cb862-5218-0410-a997-914c9d46530a
2005-10-12 14:20:36 +00:00
spanne
593887dece Simply use autoreconf in autogen.sh, it is much simpler and the recommended
way in the autotools documentation. Removed INSTALL, install-sh and
mkinstalldirs, they are either unused or automatically generated by
autogen.sh.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@690 7f0cb862-5218-0410-a997-914c9d46530a
2005-10-12 13:04:46 +00:00
fayjf
88b28ee963 Allowing compilation of Windows version by removing DLL decorations from deprecated joystick interface extensions
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@689 7f0cb862-5218-0410-a997-914c9d46530a
2005-10-06 14:01:56 +00:00
fayjf
dfaf1a5846 Implementing Stereo in Windows
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@688 7f0cb862-5218-0410-a997-914c9d46530a
2005-10-06 13:53:42 +00:00
spanne
0e76af92bb Use target-specific *_CPPFLAGS, not the deprecated INCLUDES.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@687 7f0cb862-5218-0410-a997-914c9d46530a
2005-09-07 11:53:13 +00:00
spanne
c529daadc7 Use -Wall for automake to catch some buglets, deprecated stuff, etc.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@686 7f0cb862-5218-0410-a997-914c9d46530a
2005-09-07 11:47:20 +00:00
spanne
c3abbc2013 Silenced autogen.sh
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@685 7f0cb862-5218-0410-a997-914c9d46530a
2005-09-04 15:24:57 +00:00
fayjf
86ebda12d2 Necessary files for Open Watcom support
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@684 7f0cb862-5218-0410-a997-914c9d46530a
2005-08-31 16:00:55 +00:00
fayjf
d62bf658f7 Adding Open Watcom support
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@683 7f0cb862-5218-0410-a997-914c9d46530a
2005-08-31 14:33:33 +00:00
fayjf
da09dcc857 Documenting support for Open Watcom
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@682 7f0cb862-5218-0410-a997-914c9d46530a
2005-08-31 13:52:48 +00:00
fayjf
a9ed0f7521 Implementing WATCOM support
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@681 7f0cb862-5218-0410-a997-914c9d46530a
2005-08-31 13:10:40 +00:00
spanne
485ee9acb8 Nuked useless bit-fiddling, pointed out by John. I was a bit too quick to
cut-n-paste the cfmakeraw() definition into our code... :-]


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@680 7f0cb862-5218-0410-a997-914c9d46530a
2005-07-14 12:54:24 +00:00
spanne
7c0201f17b Synched the DLL definitions with reality.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@679 7f0cb862-5218-0410-a997-914c9d46530a
2005-07-14 11:56:34 +00:00
spanne
ee25389446 Fixed the GLUT_CURSOR_INHERIT logic once again...
Note that this commit is untested, but at least it looks better than
before. We really a need a cursor test program.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@678 7f0cb862-5218-0410-a997-914c9d46530a
2005-07-14 09:39:26 +00:00
fayjf
322a290199 Fixing a cursor bug in \"GLUT_CURSOR_INHERIT\"
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@677 7f0cb862-5218-0410-a997-914c9d46530a
2005-07-13 20:25:07 +00:00
spanne
fa640f9356 Improve autoconf magic: To detect headers like GL/gl.h, it might be
necessary to temporarily use the X11 flags found by AC_PATH_XTRA.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@676 7f0cb862-5218-0410-a997-914c9d46530a
2005-07-13 12:05:33 +00:00
spanne
e802d0e918 Avoid gcc warnings for some joystick code (e.g. on Solaris).
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@675 7f0cb862-5218-0410-a997-914c9d46530a
2005-07-13 11:44:59 +00:00
spanne
4901f840a9 Tiny cleanup only...
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@674 7f0cb862-5218-0410-a997-914c9d46530a
2005-07-13 11:38:27 +00:00
spanne
7007bb0eb8 Solaris doesn't have cfmakeraw, but it is only a convenience function for
some bit-fiddling, anyway.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@673 7f0cb862-5218-0410-a997-914c9d46530a
2005-07-13 11:35:36 +00:00
spanne
c9d919e643 Made all the "glutJoystickXXX" functions part of the freeglut extensions.
If this is not what we want, we can easily #ifdef this away again...


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@672 7f0cb862-5218-0410-a997-914c9d46530a
2005-07-08 13:20:12 +00:00
spanne
7648f784f3 Made a few global arrays "static", avoiding namespace pollution. The only
externally visible symbols should either be from the GLUT API ("glutXXX")
or internal freeglut entities ("fgYYY"). Reformatted things a bit on the way.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@671 7f0cb862-5218-0410-a997-914c9d46530a
2005-07-08 12:48:58 +00:00
spanne
633e3e7179 We only have pending redisplay callbacks when the window wants to be
redisplayed *and* it is visible. Otherwise we won't redraw, anyway, and
immediately discover that there's still something to do, etc. etc., leading
to 100% CPU load.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@670 7f0cb862-5218-0410-a997-914c9d46530a
2005-07-06 16:11:31 +00:00
spanne
56a37333b9 Removed redundant code.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@669 7f0cb862-5218-0410-a997-914c9d46530a
2005-07-06 16:06:05 +00:00
spanne
e3f40841b6 X11 only: Destroy the global menu rendering context when deinitializing.
The visual/context handling for menus is still rather obscure, though...


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@668 7f0cb862-5218-0410-a997-914c9d46530a
2005-07-06 16:02:48 +00:00
spanne
a37b090e46 Reverting previous commit: %lf is a valid format specifier for the scanf
familiy of functions only, not for the printf family.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@667 7f0cb862-5218-0410-a997-914c9d46530a
2005-07-06 09:19:37 +00:00
fayjf
3ae354ad4b Implementing the new menu context variable names in Windows ...
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@666 7f0cb862-5218-0410-a997-914c9d46530a
2005-07-05 14:39:07 +00:00
fayjf
e64851b09c Changing a comment ... nothing big.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@665 7f0cb862-5218-0410-a997-914c9d46530a
2005-07-05 14:16:44 +00:00
fayjf
a51693c8fd Fixing output formats ... nothing big
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@664 7f0cb862-5218-0410-a997-914c9d46530a
2005-07-05 13:54:18 +00:00
spanne
bd0a87210c X11 only: Free XVisualInfo structures when they are not needed
anymore, fixing a space leak. Not perfect for menus yet...


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@663 7f0cb862-5218-0410-a997-914c9d46530a
2005-07-05 12:32:56 +00:00
spanne
a3d9116d49 Tiny change to make grep's life easier: Rename the fields of the menu
context. Not really worth a ChangeLog entry...

IMHO it looks like we could kill the whole MenuContext stuff, it is of no
use currently and some things look strange, like e.g. having a context per
menu. The latter is not OK when a menu is attached to multiple windows.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@662 7f0cb862-5218-0410-a997-914c9d46530a
2005-07-05 11:31:58 +00:00
spanne
c4c3661612 Handle modifiers in MotionNotify events, too. This fixes bug #1227920
(glutGetModifiers not set/allowed in mouse callbacks). In addition, some related
cleanup has been done.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@661 7f0cb862-5218-0410-a997-914c9d46530a
2005-07-02 13:50:02 +00:00
spanne
4e334977a1 Partial fixes for bug #1218900 (freeglut-2.4.0 on FreeBSD).
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@660 7f0cb862-5218-0410-a997-914c9d46530a
2005-07-02 13:13:30 +00:00
spanne
f8d3ddc18a Remove wrong "execute" bits when creating a distribution. This fixes
bug #961938 (Executable bit set on non exe files).


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@659 7f0cb862-5218-0410-a997-914c9d46530a
2005-07-02 12:58:07 +00:00