freeglut
9 years ago- fixed a minor bug in the UNIX/X11 cursor code, causing an X error and abort
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

9 years agoremoved the completely outdated FrequentlyAskedQuestions file
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

9 years agoMacOSX doesn't define HOST_NAME_MAX in unistd.h, which made freeglut fail to
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

9 years ago- changed the main INCLUDE_DIRECTORIES definition to place the main header
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

9 years agoadded INCLUDE_DIRECTORIES(${X11_INCLUDE_DIR}) to make sure X11 header files are corre...
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

9 years agoApplied Daniel Macks' patch to use ${CMAKE_INSTALL_LIBDIR} instead of
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

9 years agopkgconfig files should go to $(PREFIX)/lib, not $(PREFIX)/share. Closing bug #216
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

10 years agoupdated list of cmake switches in README.cmake
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

10 years agoCMake: FREEGLUT_REPLACE_GLUT option should not be visible on windows
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

10 years agobrought back the option to build either as "glut" or "freeglut": FREEGLUT_REPLACE_GLUT
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

10 years agotypofixes - https://github.com/vlajos/misspell_fixer
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

10 years agoinclude standard UNIX header fcntl.h in fg_joystick_x11.c, since fcntl() is called...
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

10 years ago- changed the minor so version for the new release to 3.10.0 (fg2.8.1 was 3.9.0)
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

10 years agoAdded support for minimizing window.
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

10 years agoAdded missing glutStrokeWidthf and glutStrokeLengthf for mobile support.
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

10 years agoremoved all HAVE_ERRNO checks
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

10 years agoremoved vfprintf and checking from CMakeLists.txt, and all the fallbacks from
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

10 years agofixed the unreachable GL error check in getAttribOrUniformLocation in demos/shapes...
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

10 years agoadded missing newlines at the ends of two files as reported by Kevin Morgan.
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

10 years agosmall simplification
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

10 years agoadding glutStrokeWidthf and glutStrokeLengthf from GLUT 3.8
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

10 years agorenamed all references to freeglut_xxx files (their old names) to fg_xxx
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

10 years agobe more careful about closing menus when focus changes. Only do so when new focus...
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

10 years agomore cleanup: config.h include never needed in demo
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

10 years agoTidy-up: config.h included via fg_internal.h no deep to duplicate.
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

10 years agosome cleanup, correctness in naming, correctness in type (those ATOM should be BOOL)
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

10 years agochange some initializer use that some compilers choke on (even that technically may...
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

10 years agoFixed bug identified by Kevin. If pollrate is larger than elapsedtime, we'd wrap...
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

10 years agoremoved debug code I forgot to clean up
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

10 years agofixed a printf format specifier (was %i instead of %lu while printing an unsigned...
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

10 years agofixed build on MSVC6
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

10 years agodrawing join dots on stroke fonts is now optional (and default off)
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

10 years agonow using _NET_FRAME_EXTENTS if available to get size of window decorations
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

10 years agoX11: implemented borderless and captionless window style using motif hints
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

10 years agoglutGet window position should be relative to parent
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

10 years agocaption height should include the width of the border atop the window
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

10 years agoresizer demo:
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

10 years agoFor builds not using cmake, generate fg_version.h to match cmake-specified version...
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

10 years agochanged the X11 gamemode code policy. Falling back to xf86vm when xrandr fails
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

10 years agoUpdated BlackBerry references to make note of the change from FREEGLUT_GLES2/1 to...
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

10 years agoRewrite EGL attributes using our ATTRIB/ATTRIB_VAL macros
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

10 years agoEGL is always double-buffered
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

10 years agoUnify GLES1 and GLES2 (libraries are compatible and can be co-linked)
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

10 years agoadd menu to opengl 3 demo. Should work as menu windows have their own classic context
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

10 years agoKEY_EVENT macro exists in windows 8.1 API: renamed it. Also renamed KEY macro to...
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

10 years agoUsing the -pedantic flag with gcc uncovered a series of warnings about
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

10 years agoCompiling with -ansi makes a lot of important POSIX (standard UNIX) facilities
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

10 years agoXPutBackEvent copies an XEvent internally, so the pointer passed in must
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

10 years agoFix issues with context lost on Android
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

10 years agoAdded comments about GLES 3.0 support with 2.0 references.
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

10 years agoBlackBerry and Android -Added ability for developer to choose OpenGL ES version ...
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

10 years agoUpdated toolchain so that it does a more exact check if this is for PlayBook or Black...
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

10 years agoAdded BlackBerry PlayBook support Bug memleak when getting the number of mouse button...
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

10 years agoInfo logging only shows in debug compilation Added support for UseCurrentContext...
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

10 years agoHardcoded the RGB bitdepths for EGL surface creation.
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

10 years agoMade glutGet, for window width and height, return width and height determined by...
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

10 years agoAdded support for rotation so an app can be rotated and FG will resize and manage...
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

10 years agoAdded (though commented out) support for setting window position
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

10 years agoPlaceholder for window sizes Prevent navigator event 0x0 to show as unknown (though...
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

10 years agoAdded full support for WindowStatus App status is now based on actual app status...
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

10 years agoFixed bug where if statement didn't have parenthesis, causing it to just exit
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

10 years agoImplemented a small work around for no current window being set while executing the...
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

10 years agoAdded support for the scroll wheel when using the simulator
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

10 years agoForgot to reset modifiers once done with modifiers.
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

10 years agoAdded support for key modifiers
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

10 years agoAdded ability to get mouse button count or touch ID count.
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

10 years agoAdded ability to get screen size of display
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

10 years agoRestructuring of when screen context and events are started stopped, created and...
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

10 years agoAdded keyboard states for BlackBerry
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

10 years agoAdded two more navigator states (that might be implemented) for BlackBerry
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

10 years agoPrevented case where no window was set when waiting for events.
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

10 years agoConverted the odd double spaces into 4 space tabs
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

10 years agoMinor order change in Android/BlackBerry CMake, one comment for BlackBerry window
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

10 years agoAdded a couple event cases for BlackBerry that are common to prevent them being liste...
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

10 years agoRemoved fg_main_blackberry.h. It wasn't needed
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

10 years agoMade sure that windows created on BlackBerry are registered as fullscreen, for now...
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

10 years agoCan use input devices from x11 (serial input... unlikely to ever be used, but you...
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

10 years agoMinor change so that OpenGL ES 1.x can be used for BlackBerry
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

10 years agoImplemented BlackBerry main (initial version)
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

10 years agoFinal commit before implementing main loop. All other code is implemented to the...
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

10 years agoImplemented fg_window_blackberry.c to initialize and cleanup windows Implemented...
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

10 years agoAndroid and BlackBerry have a fair amount of overlap, for now.
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

10 years agoInitial commit of BlackBerry implementation. It compiles, but doesn't have required...
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

10 years ago-sync command line option now causes X server to operate in synchronized/blocking...
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

10 years agoshould be using GetKeyState not GetAsyncKeyState to check for modifier keys as we...
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

10 years agoimplement handling of GLDebugSwitch: we use glutReportErrors to check for errors...
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

10 years agoApplied Bruce Merry's patch fixing bug #206 (segfault on shutdown in the AMD/ATI...
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

10 years agofixed timer.c: wouldn't compile in C89 mode due to recent change which added two
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

10 years agoFixed CMake UNIX config when building only "freeglut_static" or only the shared library
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

10 years agotimer demo now has a menu to:
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

10 years agoadd small note: closing menu before executing callback is also important so that...
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

10 years agonote about using near far variable names
Diederick Niehorster [Wed, 15 Jan 2014 03:22:37 +0000 (03:22 +0000)]
note about using near far variable names

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

10 years agoCreated or replaced branch /trunk from /trunk:1627
Diederick Niehorster [Sat, 11 Jan 2014 04:56:50 +0000 (04:56 +0000)]
Created or replaced branch /trunk from /trunk:1627

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

11 years agoFixing problem with non-client area becoming unresponsive on Windows due to mouse...
Diederick Niehorster [Sat, 9 Nov 2013 05:33:02 +0000 (05:33 +0000)]
Fixing problem with non-client area becoming unresponsive on Windows due to mouse capture that isn't released. Thanks Philipp Kutin (on list!) for figuring this out and proposing a solution.
-> It appears GetAsyncKeyState's return can be non-zero even when the queried key is not pressed

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

11 years agoApplied James DeLisle's patch adding EWMH _NET_WM_PID support.
John Tsiombikas [Wed, 28 Aug 2013 14:33:07 +0000 (14:33 +0000)]
Applied James DeLisle's patch adding EWMH _NET_WM_PID support.

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

11 years agoFind this kind of bug is definitely out of my juridiction - please, PLEASE maintain...
Sylvain Beucler [Sun, 19 May 2013 17:04:04 +0000 (17:04 +0000)]
Find this kind of bug is definitely out of my juridiction - please, PLEASE maintain a list of changes to apply on each port. Having negative elapsed time messed the animations so weird that you can't guess where that came from.

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

11 years agoMake Android work again - adapt to recent changes and fix use of GL-nonES function
Sylvain Beucler [Sun, 19 May 2013 15:05:39 +0000 (15:05 +0000)]
Make Android work again - adapt to recent changes and fix use of GL-nonES function

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

11 years agoIdentify Android thread in the logs
Sylvain Beucler [Sun, 19 May 2013 15:02:32 +0000 (15:02 +0000)]
Identify Android thread in the logs

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

11 years agoFix random crash
Sylvain Beucler [Sun, 19 May 2013 15:01:33 +0000 (15:01 +0000)]
Fix random crash

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

11 years agoFix compilation warning about unused variables and functions
Sylvain Beucler [Sun, 19 May 2013 14:57:13 +0000 (14:57 +0000)]
Fix compilation warning about unused variables and functions

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