Jinrong Xie [Mon, 29 Jun 2015 10:09:20 +0000 (10:09 +0000)]
Minor fix on indentation.
(cherry picked from commit
c93cdcdbbd8e3611ad3e8a0ca32bba9be2ff0c2c)
(cherry picked from commit
c93cdcdbbd8e3611ad3e8a0ca32bba9be2ff0c2c)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1763
7f0cb862-5218-0410-a997-
914c9d46530a
Jinrong Xie [Mon, 29 Jun 2015 10:09:13 +0000 (10:09 +0000)]
Minor fix on indentation.
(cherry picked from commit
bfe1b60a499ab12e648d9d68c8012b35fa5eec11)
(cherry picked from commit
bfe1b60a499ab12e648d9d68c8012b35fa5eec11)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1762
7f0cb862-5218-0410-a997-
914c9d46530a
Jinrong Xie [Mon, 29 Jun 2015 10:09:06 +0000 (10:09 +0000)]
minor update making code more compact.
(cherry picked from commit
09f401761814677e37e750aeecb9ffee450bd989)
(cherry picked from commit
09f401761814677e37e750aeecb9ffee450bd989)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1761
7f0cb862-5218-0410-a997-
914c9d46530a
Jinrong Xie [Mon, 29 Jun 2015 10:09:00 +0000 (10:09 +0000)]
Added support for 3Dconnexion Space Navigator.
(cherry picked from commit
5c1e897f1a843963f5f8e49314ce06424a2525b3)
(cherry picked from commit
5c1e897f1a843963f5f8e49314ce06424a2525b3)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1760
7f0cb862-5218-0410-a997-
914c9d46530a
Jinrong Xie [Mon, 29 Jun 2015 10:08:53 +0000 (10:08 +0000)]
Added support for 3Dconnexion Space Navigator.
(cherry picked from commit
857105a0b4a4c44fcdd9b11a33eff0c910ce41a9)
(cherry picked from commit
857105a0b4a4c44fcdd9b11a33eff0c910ce41a9)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1759
7f0cb862-5218-0410-a997-
914c9d46530a
Manuel Bachmann [Sat, 4 Apr 2015 18:43:27 +0000 (18:43 +0000)]
Implement initial Wayland support
This commit creates a new "wayland" backend, which can be
activated at configure time with "-DFREEGLUT_WAYLAND=ON".
If done so, it will be used instead of X11 (building both
and doing runtime detection may become possible later).
Please note that if you choose to use GL instead of GLES
(by not specifying "-DFREEGLUT_GLES=ON"), then libX11
will still be pulled as an indirect dependency.
Following features are still WIP :
- menus (not implemented, TODO) ;
- client-side decorations (not implemented, required
because Wayland shells do not draw title bars nor
resize grips, TODO) ;
- game mode (code is commented out, depends on WIP
protocols tested upstream, WAIT FOR UPSTREAM) ;
- window visibility states (code is commented out,
depends on xdg-shell protocol, TODO).
Signed-off-by: Manuel Bachmann <tarnyko@tarnyko.net>
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1758
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Sat, 7 Mar 2015 20:57:16 +0000 (20:57 +0000)]
updated the readme file, and removed out of date and unmaintained files from the project root
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1752
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Sat, 7 Mar 2015 18:55:40 +0000 (18:55 +0000)]
fixed indentation in AUTHORS
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1751
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Sat, 7 Mar 2015 18:53:54 +0000 (18:53 +0000)]
added the init error handler example program contributed by Chris Marshall
Not building it as part of the demos yet, since it was submitted quite late in the 3.0 release process
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1750
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Sat, 28 Feb 2015 04:15:13 +0000 (04:15 +0000)]
- fixed a minor bug in the UNIX/X11 cursor code, causing an X error and abort
due to a stale cursor cache, when the application (which calls glutSetCursor),
uses glutLeaveMainLoop to close the connection to the X server, and then
re-initializes freeglut and starts over with a new connection.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1749
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Wed, 18 Feb 2015 05:20:50 +0000 (05:20 +0000)]
removed the completely outdated FrequentlyAskedQuestions file
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1747
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Wed, 18 Feb 2015 05:03:16 +0000 (05:03 +0000)]
MacOSX doesn't define HOST_NAME_MAX in unistd.h, which made freeglut fail to
build. Now, if the definition is missing, we'll just define it arbitrarilly as
255, which should be a safe value. This is just needed for an obscure X11 WM
protocol.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1746
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Wed, 18 Feb 2015 04:59:57 +0000 (04:59 +0000)]
- changed the main INCLUDE_DIRECTORIES definition to place the main header
locations first in the list instead of appending them. This gives priority to
our freeglut*.h files instead of the old system-wide installed ones.
- removed the Xxf86vm hack from CMakeLists.txt: it seems like it's not needed
any more in new versions of cmake, and it fails to link on MacOSX.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1745
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Wed, 18 Feb 2015 03:59:21 +0000 (03:59 +0000)]
added INCLUDE_DIRECTORIES(${X11_INCLUDE_DIR}) to make sure X11 header files are correctly located, on systems where they are in weird places.
This closes bug: #218
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1744
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Wed, 18 Feb 2015 00:37:05 +0000 (00:37 +0000)]
Applied Daniel Macks' patch to use ${CMAKE_INSTALL_LIBDIR} instead of
hardcoding lib for the installation directory of libraries, with the
additional modification of installing the pkg-config files there too.
closing bug #217
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1743
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Sat, 3 Jan 2015 11:55:09 +0000 (11:55 +0000)]
pkgconfig files should go to $(PREFIX)/lib, not $(PREFIX)/share. Closing bug #216
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1742
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Thu, 25 Dec 2014 14:35:17 +0000 (14:35 +0000)]
updated list of cmake switches in README.cmake
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1734
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Thu, 25 Dec 2014 14:35:09 +0000 (14:35 +0000)]
CMake: FREEGLUT_REPLACE_GLUT option should not be visible on windows
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1733
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Wed, 24 Dec 2014 21:23:29 +0000 (21:23 +0000)]
brought back the option to build either as "glut" or "freeglut": FREEGLUT_REPLACE_GLUT
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1732
7f0cb862-5218-0410-a997-
914c9d46530a
Veres Lajos [Mon, 22 Dec 2014 16:27:02 +0000 (16:27 +0000)]
typofixes - https://github.com/vlajos/misspell_fixer
(cherry picked from commit
c85ed83b848379d49d0869b84ab15851e2df8784)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1731
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Tue, 2 Dec 2014 05:22:12 +0000 (05:22 +0000)]
include standard UNIX header fcntl.h in fg_joystick_x11.c, since fcntl() is called conditionally in there (bug #192).
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1730
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Tue, 4 Nov 2014 11:47:27 +0000 (11:47 +0000)]
- changed the minor so version for the new release to 3.10.0 (fg2.8.1 was 3.9.0)
- made the so version numbers more prominent in the cmake file to make sure they're not forgotten in future releases
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1729
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Mon, 3 Nov 2014 04:19:10 +0000 (04:19 +0000)]
Added support for minimizing window.
Fixed issue where reshape callback would be called multiple times due to conflicting window size messages on keyboard closure.
Fixed issue where changing orientation with the keyboard open would cause multiple reshape events.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1728
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Mon, 3 Nov 2014 04:18:51 +0000 (04:18 +0000)]
Added missing glutStrokeWidthf and glutStrokeLengthf for mobile support.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1727
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Mon, 20 Oct 2014 15:27:04 +0000 (15:27 +0000)]
removed all HAVE_ERRNO checks
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1724
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Mon, 20 Oct 2014 15:22:29 +0000 (15:22 +0000)]
removed vfprintf and checking from CMakeLists.txt, and all the fallbacks from
vfprintf to the obscure _doprnt function
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1723
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Sun, 19 Oct 2014 23:22:53 +0000 (23:22 +0000)]
fixed the unreachable GL error check in getAttribOrUniformLocation in demos/shapes/shapes.c as noted by Kevin Morgan
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1722
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Sun, 19 Oct 2014 23:13:54 +0000 (23:13 +0000)]
added missing newlines at the ends of two files as reported by Kevin Morgan.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1721
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Sat, 18 Oct 2014 16:22:39 +0000 (16:22 +0000)]
small simplification
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1720
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Fri, 17 Oct 2014 16:28:24 +0000 (16:28 +0000)]
adding glutStrokeWidthf and glutStrokeLengthf from GLUT 3.8
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1718
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Fri, 17 Oct 2014 16:09:00 +0000 (16:09 +0000)]
renamed all references to freeglut_xxx files (their old names) to fg_xxx
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1717
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Thu, 16 Oct 2014 17:43:22 +0000 (17:43 +0000)]
be more careful about closing menus when focus changes. Only do so when new focus window is not ANY of the open menus and when it is not the menu's parent window (all open menus are guaranteed to have the same parent in my reading of the code)
Also simplified situation in which menus are SW_SHOWed... if a gamemode window is open, it must the parent of any active windows as there can be no other windows open on top of the gamemode window.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1716
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Mon, 13 Oct 2014 13:54:44 +0000 (13:54 +0000)]
more cleanup: config.h include never needed in demo
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1714
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Mon, 13 Oct 2014 13:54:27 +0000 (13:54 +0000)]
Tidy-up: config.h included via fg_internal.h no deep to duplicate.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1713
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Sun, 12 Oct 2014 09:50:19 +0000 (09:50 +0000)]
some cleanup, correctness in naming, correctness in type (those ATOM should be BOOL)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1712
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Sun, 12 Oct 2014 06:37:00 +0000 (06:37 +0000)]
change some initializer use that some compilers choke on (even that technically may a bug in the compiler, I think)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1711
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Sun, 12 Oct 2014 06:21:32 +0000 (06:21 +0000)]
Fixed bug identified by Kevin. If pollrate is larger than elapsedtime, we'd wrap, and joystick would never get polled
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1710
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Sun, 12 Oct 2014 04:49:22 +0000 (04:49 +0000)]
removed debug code I forgot to clean up
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1709
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Sat, 11 Oct 2014 17:20:19 +0000 (17:20 +0000)]
fixed a printf format specifier (was %i instead of %lu while printing an unsigned long)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1708
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Sat, 11 Oct 2014 17:15:33 +0000 (17:15 +0000)]
fixed build on MSVC6
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1707
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Sun, 28 Sep 2014 04:04:08 +0000 (04:04 +0000)]
drawing join dots on stroke fonts is now optional (and default off)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1705
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Fri, 29 Aug 2014 00:41:03 +0000 (00:41 +0000)]
now using _NET_FRAME_EXTENTS if available to get size of window decorations
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1704
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Wed, 27 Aug 2014 16:02:03 +0000 (16:02 +0000)]
X11: implemented borderless and captionless window style using motif hints
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1703
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Wed, 27 Aug 2014 11:45:58 +0000 (11:45 +0000)]
glutGet window position should be relative to parent
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1701
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Wed, 27 Aug 2014 10:14:44 +0000 (10:14 +0000)]
caption height should include the width of the border atop the window
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1700
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Wed, 27 Aug 2014 05:47:05 +0000 (05:47 +0000)]
resizer demo:
some breaks missing in keyboard switch
added instruction text for which buttons can be pressed
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1699
7f0cb862-5218-0410-a997-
914c9d46530a
Nigel Stewart [Mon, 18 Aug 2014 02:00:40 +0000 (02:00 +0000)]
For builds not using cmake, generate fg_version.h to match cmake-specified version number.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1696
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Mon, 18 Aug 2014 00:52:53 +0000 (00:52 +0000)]
changed the X11 gamemode code policy. Falling back to xf86vm when xrandr fails
was problematic when passing invalid modes. Now instead, if xrandr is
available, we use that, and only that. XF86VM is now only used when XR&R is not
supported at all.
I also added a set of env vars to artificially disable one or the other, or
both. If FREEGLUT_NO_XRANDR is set we completely ignore XR&R, and if
FREEGLUT_NO_XF86VM is set, we completely ignore XF86VidMode. Obviously if both
are defined or missing, game mode can't switch resolutions at all any more, but
that's a nice debugging aid, and may be useful to allow the user to pick which
extension he'd rather use for mode switching.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1695
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Tue, 24 Jun 2014 07:03:16 +0000 (07:03 +0000)]
Updated BlackBerry references to make note of the change from FREEGLUT_GLES2/1 to FREEGLUT_GLES.
Updated BlackBerry toolchain to support building with Dinkum and to support OS 10.3 and GCC 4.8.2
Updated BlackBerry fg_window_blackberry so that window usages aren't hardcoded based on compile information, since it is now controlled by glutInitContextVersion.
EGL window setup now supports EGL 1.5, Renderable type for ES3, and using the minor version from glutInitContextVersion to have more exact control over which version of OpenGL ES is used (requires EGL 1.5)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1694
7f0cb862-5218-0410-a997-
914c9d46530a
Sylvain Beucler [Sun, 1 Jun 2014 11:04:09 +0000 (11:04 +0000)]
Rewrite EGL attributes using our ATTRIB/ATTRIB_VAL macros
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1690
7f0cb862-5218-0410-a997-
914c9d46530a
Sylvain Beucler [Sun, 1 Jun 2014 09:48:51 +0000 (09:48 +0000)]
EGL is always double-buffered
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1688
7f0cb862-5218-0410-a997-
914c9d46530a
Sylvain Beucler [Sun, 1 Jun 2014 09:24:47 +0000 (09:24 +0000)]
Unify GLES1 and GLES2 (libraries are compatible and can be co-linked)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1687
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Sun, 1 Jun 2014 03:50:51 +0000 (03:50 +0000)]
add menu to opengl 3 demo. Should work as menu windows have their own classic context
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1686
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Wed, 14 May 2014 22:02:41 +0000 (22:02 +0000)]
KEY_EVENT macro exists in windows 8.1 API: renamed it. Also renamed KEY macro to be safe.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1683
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Wed, 14 May 2014 18:31:58 +0000 (18:31 +0000)]
Using the -pedantic flag with gcc uncovered a series of warnings about
non-standard C constructs in the code. This commit fixes them.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1682
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Wed, 14 May 2014 18:28:53 +0000 (18:28 +0000)]
Compiling with -ansi makes a lot of important POSIX (standard UNIX) facilities
unavailable. This was masked until recently by an incorrect conditional in the
CMakeLists.txt file, that looked like it would use -ansi on anything other than
android, but it didn't actually use it anywhere. As soon as that was fixed, and
-ansi started being used, build broke on linux.
The intention of the -ansi flag was to help catch portability-reducing mistakes
in the code, so instead of removing it completely I used -pedantic in its place,
which produces a lot of warnings for not strictly ISO/ANSI compliant code that
relies on compiler-specific features.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1681
7f0cb862-5218-0410-a997-
914c9d46530a
Lindley French [Fri, 11 Apr 2014 13:41:49 +0000 (13:41 +0000)]
XPutBackEvent copies an XEvent internally, so the pointer passed in must
point to an actual XEvent object, not an XConfigureEvent, which is
smaller. This avoids an invalid stack read.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1680
7f0cb862-5218-0410-a997-
914c9d46530a
Michal Stawinski [Wed, 5 Mar 2014 01:40:18 +0000 (01:40 +0000)]
Fix issues with context lost on Android
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1678
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:35:48 +0000 (10:35 +0000)]
Added comments about GLES 3.0 support with 2.0 references.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1677
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:35:35 +0000 (10:35 +0000)]
BlackBerry and Android -Added ability for developer to choose OpenGL ES version (2.0 or 3.0) via glutInitContextVersion (only the major version is used)
BlackBerry specific
-Added better documentation on required window bit depth for BlackBerry.
-Modified screen format picking so it will choose either RGBA8888 or RGB565 instead of always using RGBA8888
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1676
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:35:22 +0000 (10:35 +0000)]
Updated toolchain so that it does a more exact check if this is for PlayBook or BlackBerry 10 Fixed bug with keyboard on PlayBook where keyboard heights only occurred on rotation, and resize would occur twice because of it and resize wouldn't happen for keyboard
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1675
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:35:05 +0000 (10:35 +0000)]
Added BlackBerry PlayBook support Bug memleak when getting the number of mouse buttons on a non-PlayBook where an appropriate device is found and the value is returned
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1674
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:34:49 +0000 (10:34 +0000)]
Info logging only shows in debug compilation Added support for UseCurrentContext flag Updated fghPlatformCloseWindowEGL for performance so that eglMakeCurrent isn't invoked unless it's the current window and that the EGL context isn't destroyed unless no other windows uses
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1673
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:34:32 +0000 (10:34 +0000)]
Hardcoded the RGB bitdepths for EGL surface creation.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1672
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:34:17 +0000 (10:34 +0000)]
Made glutGet, for window width and height, return width and height determined by device rotation Now handles keyboard open/close (along wit device rotation while the keyboard is open) and resize The "back" operation now returns an ESCAPE key
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1671
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:33:57 +0000 (10:33 +0000)]
Added support for rotation so an app can be rotated and FG will resize and manage the window in the background Additional documentation explaining why certain functions are implemented in the manner they are Changed QNX macro to a non deprecated one
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1670
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:33:38 +0000 (10:33 +0000)]
Added (though commented out) support for setting window position
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1669
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:33:23 +0000 (10:33 +0000)]
Placeholder for window sizes Prevent navigator event 0x0 to show as unknown (though it is unknown... it's not defined in navigator.h)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1668
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:33:07 +0000 (10:33 +0000)]
Added full support for WindowStatus App status is now based on actual app status instead of window visibility
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1667
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:32:52 +0000 (10:32 +0000)]
Fixed bug where if statement didn't have parenthesis, causing it to just exit
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1666
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:32:39 +0000 (10:32 +0000)]
Implemented a small work around for no current window being set while executing the event handler
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1665
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:29:59 +0000 (10:29 +0000)]
Added support for the scroll wheel when using the simulator
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1664
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:29:44 +0000 (10:29 +0000)]
Forgot to reset modifiers once done with modifiers.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1663
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:29:30 +0000 (10:29 +0000)]
Added support for key modifiers
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1662
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:29:17 +0000 (10:29 +0000)]
Added ability to get mouse button count or touch ID count.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1661
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:29:03 +0000 (10:29 +0000)]
Added ability to get screen size of display
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1660
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:28:48 +0000 (10:28 +0000)]
Restructuring of when screen context and events are started stopped, created and destroyed
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1659
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:28:29 +0000 (10:28 +0000)]
Added keyboard states for BlackBerry
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1658
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:28:14 +0000 (10:28 +0000)]
Added two more navigator states (that might be implemented) for BlackBerry
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1657
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:27:59 +0000 (10:27 +0000)]
Prevented case where no window was set when waiting for events.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1656
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:27:43 +0000 (10:27 +0000)]
Converted the odd double spaces into 4 space tabs
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1655
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:27:24 +0000 (10:27 +0000)]
Minor order change in Android/BlackBerry CMake, one comment for BlackBerry window
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1654
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:27:08 +0000 (10:27 +0000)]
Added a couple event cases for BlackBerry that are common to prevent them being listed as unknown events.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1653
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:26:52 +0000 (10:26 +0000)]
Removed fg_main_blackberry.h. It wasn't needed
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1652
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:26:37 +0000 (10:26 +0000)]
Made sure that windows created on BlackBerry are registered as fullscreen, for now. Added more logging in fgPlatformProcessSingleEvent on BlackBerry. Better handling of key repeats on BlackBerry by taking into account global and window settings.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1651
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:26:20 +0000 (10:26 +0000)]
Can use input devices from x11 (serial input... unlikely to ever be used, but you never know) Fixed bug in fg_window_egl:fgPlatformSetWindow where a NULL window may be passed and cause a segfault Fixed bug where navigator events were never started Take into account DisplayMode when creating window buffers Proper fgPlatformSystemTime implementation (from fg_main_x11) Added support for mutlitouch (from fg_main_windows)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1650
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:26:00 +0000 (10:26 +0000)]
Minor change so that OpenGL ES 1.x can be used for BlackBerry
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1649
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:25:47 +0000 (10:25 +0000)]
Implemented BlackBerry main (initial version)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1648
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:25:29 +0000 (10:25 +0000)]
Final commit before implementing main loop. All other code is implemented to the same level as Android.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1647
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:25:10 +0000 (10:25 +0000)]
Implemented fg_window_blackberry.c to initialize and cleanup windows Implemented a BlackBerry specific fg_init so that bps can be started and stopped.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1646
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:24:45 +0000 (10:24 +0000)]
Android and BlackBerry have a fair amount of overlap, for now.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1645
7f0cb862-5218-0410-a997-
914c9d46530a
Rcmaniac25 [Fri, 24 Jan 2014 10:24:23 +0000 (10:24 +0000)]
Initial commit of BlackBerry implementation. It compiles, but doesn't have required functions implemented.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1644
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Thu, 23 Jan 2014 02:28:02 +0000 (02:28 +0000)]
-sync command line option now causes X server to operate in synchronized/blocking mode
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1643
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Wed, 22 Jan 2014 12:06:59 +0000 (12:06 +0000)]
should be using GetKeyState not GetAsyncKeyState to check for modifier keys as we care which modifiers were active at the time of the key/mouse press we are processing
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1642
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Wed, 22 Jan 2014 10:09:57 +0000 (10:09 +0000)]
implement handling of GLDebugSwitch: we use glutReportErrors to check for errors in each iteration of the glut mainloop if requested
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1641
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Tue, 21 Jan 2014 10:52:53 +0000 (10:52 +0000)]
Applied Bruce Merry's patch fixing bug #206 (segfault on shutdown in the AMD/ATI fglrx driver).
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1640
7f0cb862-5218-0410-a997-
914c9d46530a
John Tsiombikas [Tue, 21 Jan 2014 10:50:05 +0000 (10:50 +0000)]
fixed timer.c: wouldn't compile in C89 mode due to recent change which added two
for loops with a loop variable declared in the statement itself.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1639
7f0cb862-5218-0410-a997-
914c9d46530a
Sébastien Rombauts [Sat, 18 Jan 2014 01:57:14 +0000 (01:57 +0000)]
Fixed CMake UNIX config when building only "freeglut_static" or only the shared library
- was setting a property on "freeglut" while "FREEGLUT_BUILD_SHARED_LIBS" was "OFF"
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1638
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Fri, 17 Jan 2014 16:18:46 +0000 (16:18 +0000)]
timer demo now has a menu to:
- set flicker tempo
- test whether menus can be modified in the callback (there was a regression with this in freeglut 2.8.1 that was perchance already fixed in r1583, but make sure we're testing this from now on)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1637
7f0cb862-5218-0410-a997-
914c9d46530a
Diederick Niehorster [Fri, 17 Jan 2014 16:18:35 +0000 (16:18 +0000)]
add small note: closing menu before executing callback is also important so that the callback can actually modify the menu
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1636
7f0cb862-5218-0410-a997-
914c9d46530a