b9998bbc1eWork-around for an issue which cropped up with the release of gcc-10. In their infinite wisdom, they decided to build with -fno-common as default from now on, breaking every piece of C code which used to declare common symbols in header files, as was the convention since the dawn of time. We now have to duplicate all declarations to an arbitrary source file, and change the header-file ones to prefix them with extern.
jtsiomb
2020-02-21 22:25:31 +00:00
e6baf9cee8Add checks for debug flags for android
Maciej Sroczyński
2020-02-15 19:05:49 +01:00
0a464e7d6eset default FREEGLUT_GLES=ON on android
Maciej Sroczyński
2020-02-15 18:39:49 +01:00
08eeac7f3eremoved completed items off the todo list, and corrected html errors
jtsiomb
2019-11-17 13:41:44 +00:00
Merge pull request #75 from coypoop/joystick-h
Diederick C. Niehorster
2019-10-22 10:04:54 +02:00
fbbe1295ddOmit mention of autoconf update, autoconf is no longer in use
Maya Rashish
2019-10-21 15:32:50 +03:00
bcfbede38aUse <sys/joystick.h> on netbsd, too.
Maya Rashish
2019-10-21 12:47:04 +03:00
d8f5c1e758Merge remote-tracking branch 'svn/trunk' into git_master
Diederick C. Niehorster
2019-09-30 17:53:52 +02:00
61fb655211updated release list on the website
jtsiomb
2019-09-29 19:34:52 +00:00
ef2b555342Merge remote-tracking branch 'svn/trunk' into git_master
Diederick C. Niehorster
2019-09-27 19:02:30 +02:00
142c7af2e6updated version number to prepare for release 3.2.1
jtsiomb
2019-09-25 20:43:34 +00:00
54f8610a1aMerge remote-tracking branch 'svn/trunk' into git_master
Diederick C. Niehorster
2019-09-25 16:36:56 +02:00
dda17d2506Fixed bug #252: menu windows are drawn with immediate mode and the fixed function pipeline, and therefore we must make sure the context created for them is not a core profile context. Previously if the user requested a core profile context, this would apply to menu windows too, and they would appear black.
jtsiomb
2019-09-25 10:08:07 +00:00
31606f4f88Fixed failure to install glut.h header file when FREEGLUT_REPLACE_GLUT is enabled (bug #250)
jtsiomb
2019-09-18 11:53:32 +00:00
8085e72291Version bump in cmake, that should have been done for 3.2.0. Changed SO_MINOR due to introduction of the new ucall entry points
jtsiomb
2019-09-18 10:45:42 +00:00
34a9babc2eMerge remote-tracking branch 'svn/trunk' into git_master
Diederick C. Niehorster
2019-09-17 09:55:04 +02:00
b28fd0d96eupdated the website upload script
jtsiomb
2019-09-17 00:13:21 +00:00
53e7d2895cupdated the webpage with the freeglut 3.2.0 release
jtsiomb
2019-09-16 23:53:47 +00:00
727f44411aMerge remote-tracking branch 'svn/trunk' into git_master
Diederick C. Niehorster
2019-09-11 21:22:18 +02:00
796b7d2f56A couple of fixes in fg_joystick_x11.c identified in bug report #249 - The correct way to set the O_NONBLOCK flag, is to OR that flag with existing flags. Previously we were overriding everything else and setting the flags value to O_NONBLOCK directly. Unlikely to cause a problem because we probably don't have any other flags in the newly opened file descriptor, but strictly spaking it was incorrect. - If ioctl JSIOCGAXES and JSIOCGBUTTONS could fail, as it stands, it would clobber the value of joy->num_axes/joy->num_buttons. It can't fail, but maybe in the future who knows. Let's be safe.
jtsiomb
2019-09-11 13:24:28 +00:00
9e9347eebcMerge remote-tracking branch 'svn/trunk' into git_master
Diederick C. Niehorster
2019-09-02 22:12:58 +02:00
2239d6c54dFixed namespace pollution due to a number of global symbols missing an fg prefix
jtsiomb
2019-08-14 10:33:31 +00:00
012936e84dMerge remote-tracking branch 'svn/trunk' into git_master
Diederick C. Niehorster
2019-06-07 09:12:59 +02:00
f645974902Applied Christian's change to drop unnecessary dependency to X11 libraries we don't actually use, by asking cmake to link with X11_X11_LIB instead of the catch-all X11_LIBRARIES.
jtsiomb
2019-03-26 18:55:42 +00:00
9ea7d99574Merge remote-tracking branch 'svn/trunk' into git_master
Diederick C. Niehorster
2018-10-10 08:18:27 +02:00
4a4f400ca7Fixed mousewheel callbacks under X11. (bug #247, github issue #66) The code had the incorrect assumption that button numbers mapped to the wheel follow after the last "real" button as returned by the GLUT_NUM_MOUSE_BUTTONS query, which in turn resolves to a call to XGetPointerMapping. In reality the X server always sends button presses for 4 and 5 when a wheel is turned down/up respectively, and the rest of the mouse buttons (if any) follow afterwards. Also XGetPointerMapping doesn't seem to reliably return the number of actual buttons, and in any case the wheel "buttons" are certainly included in the count as they can be remapped. Since we can't know if buttons after 5 are further wheels or regular buttons this modification only ever invokes the wheel callback for wheel 0.
jtsiomb
2018-10-10 05:23:33 +00:00
263c106d9cMerge remote-tracking branch 'svn/trunk' into git_master
Diederick C. Niehorster
2018-09-29 09:36:01 +02:00
29313e5313fixed spaceball button callback (x11) compatibility with original GLUT: button numbers should start from 1, not 0.
jtsiomb
2018-09-29 06:05:26 +00:00
c8d14b13afMerge remote-tracking branch 'svn/trunk' into git_master
Diederick C. Niehorster
2018-04-03 00:11:13 +02:00
89c58f2256- fallback to non-sRGB visuals if the context creation failed (GLX-only) - added new glutGet query: GLUT_WINDOW_SRGB (untested on windows)
jtsiomb
2018-04-02 03:16:50 +00:00
4bc7de3645Merge remote-tracking branch 'svn/trunk' into git_master
Diederick C. Niehorster
2018-03-27 09:41:53 +02:00
20e9df4141variable wasn't declared before rest of function. Thanks Markus Israelsson and Vinnie
dcnieho
2018-03-27 07:41:18 +00:00
79c2f10235Merge remote-tracking branch 'svn/trunk' into git_master
Diederick C. Niehorster
2018-03-26 22:33:49 +02:00
b8a9827c5bcleaning up mixed tabs and spaces
dcnieho
2018-03-26 20:32:31 +00:00
39af18f0e6Merge remote-tracking branch 'svn/trunk' into git_master
Diederick C. Niehorster
2018-03-26 22:24:51 +02:00
a2fef0a9bbfix that stereo shutter glasses for nVidia setups did not engage. We lose the ability to have child windows as the WS_POPUP style doesn't play nice with them, but thats a small price to pay as we estimate them to be rare for stereo displays. Thanks Markus Israelsson
dcnieho
2018-03-26 20:24:31 +00:00
9de8fe42b6Merge remote-tracking branch 'svn/trunk' into git_master
Diederick C. Niehorster
2018-03-24 09:52:12 +01:00
b50503822aFix build for Android using clang compiler.
dcnieho
2018-03-24 08:51:51 +00:00
Merge pull request #65 from tehnick/fix-android-clang
Diederick C. Niehorster
2018-03-24 09:46:28 +01:00
8366af203eFix build for Android using clang compiler.
Boris Pek
2017-12-15 03:29:54 +03:00
cd7f5e9964Merge remote-tracking branch 'svn/trunk' into git_master
Diederick C. Niehorster
2017-10-23 21:02:09 +02:00
d1adda4783clear window workmask when queuing up window for destruction. All callbacks (except destroy) are removed from the window already anyway. This fixes a problem where a newly created window that is immediately destroyed again causes an error-exit because it is still being inited and at that point it is found that no display callback has been set, which is an error.
dcnieho
2017-10-23 19:01:09 +00:00
89cf92a221Merge remote-tracking branch 'svn/trunk' into git_master
Diederick C. Niehorster
2017-10-23 20:23:32 +02:00
a5e7ca9303Merge remote-tracking branch 'svn/trunk' into git_master
Diederick C. Niehorster
2017-07-31 22:49:49 +02:00
5bcf802a95Fix build on NetBSD.
dcnieho
2017-07-31 20:49:26 +00:00
72e830f256Fixed freeglut.pdb install for builds with MSVC compiler and NMake.
dcnieho
2017-07-31 20:49:16 +00:00
c1a3a1e456Merge pull request #60 from 0-wiz-0/git_master
Diederick C. Niehorster
2017-07-31 22:47:32 +02:00
1236c76445Fix build on NetBSD.
Thomas Klausner
2017-07-30 23:38:33 +02:00
08bb28deceMerge pull request #59 from titorgalaxy/git_master
Diederick C. Niehorster
2017-07-30 10:03:27 +02:00
4e6bceed00Fixed freeglut.pdb install for builds with MSVC compiler and NMake.
Sean Moore
2017-07-29 03:37:58 -04:00
d27ca503e5Merge remote-tracking branch 'svn/trunk' into git_master
Diederick C. Niehorster
2017-07-21 17:15:27 +02:00
5442c0abbfFixed warnings on Linux where GCC under padantic complained ISO C casting wasn't legal
dcnieho
2017-07-21 15:13:44 +00:00
dfdb61f768Merge pull request #58 from rcmaniac25/bugfix/callback_code_isnt_iso_c_compliant
Diederick C. Niehorster
2017-07-21 17:12:32 +02:00
13ed05fe8dFixed warnings on Linux where GCC under padantic complained ISO C casting wasn't legal
Rcmaniac25
2017-07-21 00:54:29 -04:00
78bf24e101Merge remote-tracking branch 'svn/trunk' into git_master
Diederick C. Niehorster
2017-07-12 22:45:46 +02:00
eaabcd6b52moved static variables and functions that should not have stuck behind in fg_joystick.c, but should have been in fg_joystick_x11.c
dcnieho
2017-07-12 20:45:07 +00:00
4f5d9c918dadding vs folder to ignores
dcnieho
2017-07-12 20:44:55 +00:00
b39b3a5edfFix build on NetBSD.
dcnieho
2017-07-12 20:44:35 +00:00
3e8f42bbffDo not define HAVE_USBHID_H manually, cmake does it for us.
dcnieho
2017-07-12 20:44:28 +00:00
0d98472817moved static variables and functions that should not have stuck behind in fg_joystick.c, but should have been in fg_joystick_x11.c
Diederick C. Niehorster
2017-07-12 22:43:35 +02:00
3c33371938adding vs folder to ignores
Diederick C. Niehorster
2017-07-12 22:38:00 +02:00
2dd5aa4aa1some whitespace cleanup
Diederick C. Niehorster
2017-07-12 22:36:48 +02:00
c4294ad590Fix build on NetBSD.
Thomas Klausner
2017-04-25 13:38:00 +02:00
0b64b227b5Do not define HAVE_USBHID_H manually, cmake does it for us.
Thomas Klausner
2017-04-25 13:32:12 +02:00
78d820107fMerge remote-tracking branch 'svn/trunk' into git_master
Diederick C. Niehorster
2017-07-01 01:24:10 +02:00
5df98e73dfCMake produces an error if XInput.h is not found
dcnieho
2017-06-30 23:23:05 +00:00
47fb7d5f28Removed "hack" macro set
dcnieho
2017-06-30 23:22:59 +00:00
1fec35a406Corrected phrasing in docs and unneeded \ in code
dcnieho
2017-06-30 23:22:52 +00:00
cc6830131aFixed x11 and Wayland not using INVOKE_WCB
dcnieho
2017-06-30 23:22:45 +00:00
850d80554aAdded timer_callback sample for user callbacks
dcnieho
2017-06-30 23:22:39 +00:00
deaa5b843aAdded "hack" function for glutCreateMenuUcall
dcnieho
2017-06-30 23:22:26 +00:00
2646c0c9f8Moved as many callback setters as possible to macro function generators
dcnieho
2017-06-30 23:22:19 +00:00
1925fca030Updated documentation to mention and discuss user-data callbacks.
dcnieho
2017-06-30 23:22:12 +00:00
9f0eaf1a92Fixed bug where, under c89 mode, callback macros wouldn't work
dcnieho
2017-06-30 23:22:06 +00:00
8ac335fa7fRemoved unneeded line optimization for INVOKE_WCB macro
dcnieho
2017-06-30 23:21:59 +00:00
da3e00905eFixed issue where setting the same callback with different user pointer wouldn't change the user pointer. Removed extra comment on FETCH_USER_DATA_WCB Renamed helper callbacks from glutXXXCalback to fghXXXCallback
dcnieho
2017-06-30 23:21:53 +00:00
16d920d56aAdded compiler feature detection for __VA_ARGS__ and GCC ##__VA_ARGS__
dcnieho
2017-06-30 23:21:46 +00:00