freeglut
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

10 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

10 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

11 years agofgProcessWork, not fgPlatformProcessWork
Diederick Niehorster [Sat, 20 Apr 2013 14:04:21 +0000 (14:04 +0000)]
fgProcessWork, not fgPlatformProcessWork

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

11 years agostrip out GLUT_DISPLAY_CALLBACK from worklist _before_ calling display callback....
Diederick Niehorster [Sat, 20 Apr 2013 14:04:06 +0000 (14:04 +0000)]
strip out GLUT_DISPLAY_CALLBACK from worklist _before_ calling display callback. Any postredisplay in the display callback will then be honored, but no unnecessary redisplay work will be called due to redisplays queued during resize, visibility and other such processing

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

11 years agoshould not strip out GLUT_DISPLAY_CALLBACK at the end of processing work. It kills...
Diederick Niehorster [Thu, 18 Apr 2013 01:53:21 +0000 (01:53 +0000)]
should not strip out GLUT_DISPLAY_CALLBACK at the end of processing work. It kills the glutPostRedisplay inside the display callback method of getting your window continuously redrawn...

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

11 years agopart of dealing with work is platform independent, so moved it to platform independen...
Diederick Niehorster [Sun, 7 Apr 2013 12:21:03 +0000 (12:21 +0000)]
part of dealing with work is platform independent, so moved it to platform independent part of code

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

11 years agoredisplay is now also on the work list instead of handled separately
Diederick Niehorster [Sun, 7 Apr 2013 08:04:46 +0000 (08:04 +0000)]
redisplay is now also on the work list instead of handled separately

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

11 years agodoc that timers are sorted by endtime + don't call fgElapsedTime() if no timers to...
Diederick Niehorster [Sun, 7 Apr 2013 08:03:48 +0000 (08:03 +0000)]
doc that timers are sorted by endtime + don't call fgElapsedTime() if no timers to check, its a waste

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

11 years agoMenu's work again in gamemode too now. We have to do a normal ShowWindow in gamemode...
Diederick Niehorster [Sat, 6 Apr 2013 14:08:59 +0000 (14:08 +0000)]
Menu's work again in gamemode too now. We have to do a normal ShowWindow in gamemode, or the menu won't pop up over the gamemode window.
Also now using fgState.ActiveMenus instead of enumerating to see if there is an active menu

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

11 years agocleanup a debug statement
Diederick Niehorster [Sat, 6 Apr 2013 10:20:42 +0000 (10:20 +0000)]
cleanup a debug statement
show flag should be SW_SHOWNA, not SW_SHOWNOACTIVATE according to docs

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

11 years agoclicking in another window also no longer closed the menu unless focus was changed...
Diederick Niehorster [Sat, 6 Apr 2013 10:17:04 +0000 (10:17 +0000)]
clicking in another window also no longer closed the menu unless focus was changed. Fixed in click checker in general menu code, so it'll improve menus on X11 as well. Our Windows part now only needed for when losing focus because switching to a non-FreeGLUT window

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

11 years agonow that menu's no longer take focus from their parent, clicking the non-client area...
Diederick Niehorster [Sat, 6 Apr 2013 10:16:27 +0000 (10:16 +0000)]
now that menu's no longer take focus from their parent, clicking the non-client area of the parent no longer closed the menu. fixed.

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

11 years agoadded a function to translate WM_ messages to text, for debugging
Diederick Niehorster [Sat, 6 Apr 2013 10:15:53 +0000 (10:15 +0000)]
added a function to translate WM_ messages to text, for debugging

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

11 years agonow handling WM_MOUSEACTIVATE so that menus don't get activated upon mouseclick
Diederick Niehorster [Sat, 6 Apr 2013 10:15:19 +0000 (10:15 +0000)]
now handling WM_MOUSEACTIVATE so that menus don't get activated upon mouseclick

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

11 years agofix in fgUpdateMenuHighlight: clicked entry is always the active entry already, so...
Diederick Niehorster [Sat, 6 Apr 2013 10:14:41 +0000 (10:14 +0000)]
fix in fgUpdateMenuHighlight: clicked entry is always the active entry already, so no while loop. also, ignore clicks on a submenu's parent entry

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

11 years agono idea where this folder came from, think its an error of my git-svn
Diederick Niehorster [Fri, 5 Apr 2013 11:39:14 +0000 (11:39 +0000)]
no idea where this folder came from, think its an error of my git-svn
client. anyway, removing...

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

11 years agoChange FREEGLUT_WARNINGS and *_ERRORS to FREEGLUT_PRINT_WARNINGS and *_ERRORS
Diederick Niehorster [Fri, 5 Apr 2013 10:51:07 +0000 (10:51 +0000)]
Change FREEGLUT_WARNINGS and *_ERRORS to FREEGLUT_PRINT_WARNINGS and *_ERRORS

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

11 years agoimplemented WM_DISPLAYCHANGE message handler per patch in very old bug report (121216...
Diederick Niehorster [Fri, 5 Apr 2013 09:13:48 +0000 (09:13 +0000)]
implemented WM_DISPLAYCHANGE message handler per patch in very old bug report (1212167). This for us only helps make sure that glutGet(GLUT_SCREEN_WIDTH) and glutGet(GLUT_SCREEN_HEIGHT) return the correct values, and help make sure menu placement is clipped against the correct window extents. Thanks Dan!

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

11 years agoforgot to add teapot to sourcelist for gles1 and gles2 builds
Diederick Niehorster [Fri, 5 Apr 2013 02:55:45 +0000 (02:55 +0000)]
forgot to add teapot to sourcelist for gles1 and gles2 builds

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

11 years agomenu fonts API improved
Diederick Niehorster [Thu, 4 Apr 2013 14:32:29 +0000 (14:32 +0000)]
menu fonts API improved
No more glutSetOption, casting void* to int and back is not safe
glutSetMenuFont now takes menuID as param

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

11 years agoadded cursor changing to resizer demo, for testing
Diederick Niehorster [Thu, 4 Apr 2013 11:04:17 +0000 (11:04 +0000)]
added cursor changing to resizer demo, for testing

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

11 years agoinstead of separate Pause and Resume CBs, we now have a AppStatus CB which passes...
Diederick Niehorster [Thu, 4 Apr 2013 10:54:44 +0000 (10:54 +0000)]
instead of separate Pause and Resume CBs, we now have a AppStatus CB which passes flags to indicate which state was entered. more extensible

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

11 years agosome cleanup
Diederick Niehorster [Thu, 4 Apr 2013 10:36:44 +0000 (10:36 +0000)]
some cleanup

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

11 years agoand with 0xFF to indicate to runtime that we want to strip out higher bits - otherwis...
Diederick Niehorster [Thu, 4 Apr 2013 10:20:43 +0000 (10:20 +0000)]
and with 0xFF to indicate to runtime that we want to strip out higher bits - otherwise we get a runtime error when "Smaller Type Checks" is enabled
Thanks Jason Wilkins!

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

11 years agomenu changes based on patch by Jason Wilkins:
Diederick Niehorster [Thu, 4 Apr 2013 10:13:45 +0000 (10:13 +0000)]
menu changes based on patch by Jason Wilkins:
- when menu window is shown, the menu's window no longer becomes the active window on windows (we thus don't steal focus from the active window).
- when menu is active and mouse is pressed outside the active menu and if the pressed button is bound to a menu, the old menu is now closed while a new one immediately appears
- menus now hide before their callback is executed, so they don't linger around if callback execution takes a while

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

11 years agocan now set the font used for a menu
Diederick Niehorster [Thu, 4 Apr 2013 10:13:04 +0000 (10:13 +0000)]
can now set the font used for a menu
set default font using glutSetOption(GLUT_MENU_FONT,...) and set font of current menu using glutSetMenuFont()

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

11 years agoerror in checking if mouse is in window when opening menu...
Diederick Niehorster [Thu, 4 Apr 2013 10:12:02 +0000 (10:12 +0000)]
error in checking if mouse is in window when opening menu...

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

11 years agodont wait till window visible when creating menu, as menu won't be shown until first...
Diederick Niehorster [Thu, 4 Apr 2013 04:49:13 +0000 (04:49 +0000)]
dont wait till window visible when creating menu, as menu won't be shown until first use...

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

11 years agodon't show window when creating menu (better fix then making it very small and hiding...
Diederick Niehorster [Thu, 4 Apr 2013 04:28:53 +0000 (04:28 +0000)]
don't show window when creating menu (better fix then making it very small and hiding it asap...

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

11 years agovariable declaration in wrong place
Diederick Niehorster [Thu, 4 Apr 2013 02:08:55 +0000 (02:08 +0000)]
variable declaration in wrong place

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

11 years ago- moving to a new way of handling window changes (position, size, visibility)
Diederick Niehorster [Thu, 4 Apr 2013 01:56:39 +0000 (01:56 +0000)]
- moving to a new way of handling window changes (position, size, visibility)
- we now use a work list and all actions queued up in that list get executed in the main loop, just before redraws are called
- simplified redrawing on windows, now no longer doing so in response to WM_PAINT message. This allows us to full control over when we draw
- now simplified use of state variables in X11 and andriod
- resize, reposition etc callback now processed thru notify checkers that call callback only if needed
- worklist also has an init work type which is executed once for every window, just before the window receives its first draw. This gets rid of hacks to call the reshape function once (that only worked for windows that are created before mainloop is entered)
- in init work processor we also check for presence of draw callback as not having one is an error following GLUT.
- some cleanup in general

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

11 years agousing FREE_GLUT_BUILD_STATIC_LIBS and FREEGLUT_BUILD_SHARED_LIBS instead of their...
Diederick Niehorster [Thu, 4 Apr 2013 01:29:17 +0000 (01:29 +0000)]
using FREE_GLUT_BUILD_STATIC_LIBS and FREEGLUT_BUILD_SHARED_LIBS instead of their unprefixed counterparts to avoid these defs leaking into build settings for other projects.

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

11 years agochange CMAKE_SOURCE_DIR to CMAKE_CURRENT_SOURCE_DIR as requested on tracker ( Jim...
Diederick Niehorster [Thu, 4 Apr 2013 01:23:27 +0000 (01:23 +0000)]
change CMAKE_SOURCE_DIR to CMAKE_CURRENT_SOURCE_DIR as requested on tracker ( Jim ( d3x0r ) - 2013-03-18 11:36:51 PDT )

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

11 years agoto check for menu opening/closing upon button press, should pass cursor position...
Diederick Niehorster [Wed, 3 Apr 2013 11:20:56 +0000 (11:20 +0000)]
to check for menu opening/closing upon button press, should pass cursor position in the window, not in the root window

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

11 years agocleaned up a bunch of warnings
Diederick Niehorster [Mon, 1 Apr 2013 15:40:51 +0000 (15:40 +0000)]
cleaned up a bunch of warnings

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

11 years agobit more cleanup
Diederick Niehorster [Mon, 1 Apr 2013 15:12:49 +0000 (15:12 +0000)]
bit more cleanup

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

11 years agonote about glutSetVertexAttribTexCoord2 in shapes demo
Diederick Niehorster [Mon, 1 Apr 2013 12:25:53 +0000 (12:25 +0000)]
note about glutSetVertexAttribTexCoord2 in shapes demo

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

11 years agoimplement setter for texture coord 2 (u,v) vertex attribute so it can be used by...
Diederick Niehorster [Mon, 1 Apr 2013 12:01:17 +0000 (12:01 +0000)]
implement setter for texture coord 2 (u,v) vertex attribute so it can be used by FreeGLUT

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

11 years agofurther worked on the teapot drawing code:
Diederick Niehorster [Mon, 1 Apr 2013 11:46:20 +0000 (11:46 +0000)]
further worked on the teapot drawing code:
cleaned up some debug stuff, and generalized the code
now added teacup and teaspoon too, so we have Newell's set complete
As source attribution, i copied in the whole original email message that the data was taken from, and where i downloaded that email message
fixed z offset as well, so all three objects now drawn centered

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

11 years agosame as for all other geometry functions, teapot takes double, not GLdouble now.
Diederick Niehorster [Sun, 31 Mar 2013 09:46:27 +0000 (09:46 +0000)]
same as for all other geometry functions, teapot takes double, not GLdouble now.

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

11 years agoteapot now using vertex arrays or vertex attribute arrays, using handwritten Bezier...
Diederick Niehorster [Sun, 31 Mar 2013 09:21:14 +0000 (09:21 +0000)]
teapot now using vertex arrays or vertex attribute arrays, using handwritten Bezier surface evaluation code
in fg_geometry, fixed up normal generation for visualization and added support for drawing texture coordinates (teapot has texture coordinates, other geometric shapes don't)

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

11 years agowasn't using GLbooleans in this platform independent part of the code
Diederick Niehorster [Thu, 21 Mar 2013 05:23:31 +0000 (05:23 +0000)]
wasn't using GLbooleans in this platform independent part of the code
(e.g. used TRUE instead of GL_TRUE)

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

11 years agonormalizing line endings..
Diederick Niehorster [Tue, 19 Mar 2013 16:34:21 +0000 (16:34 +0000)]
normalizing line endings..

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

11 years agoadded some beginner notes for compiling through cmake on Unix
Diederick Niehorster [Tue, 19 Mar 2013 14:50:44 +0000 (14:50 +0000)]
added some beginner notes for compiling through cmake on Unix

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

11 years agonote on use of gluint/glushort in fg_geometry
Diederick Niehorster [Tue, 19 Mar 2013 10:23:18 +0000 (10:23 +0000)]
note on use of gluint/glushort in fg_geometry

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

11 years ago- another strdup
Diederick Niehorster [Sun, 17 Mar 2013 14:01:46 +0000 (14:01 +0000)]
- another strdup
- windows only opened in iconic state if its a non-gamemode, non-menu toplevel window
- depending on whether window is iconic or not glutSetWindowTitle or glutSetIconTitle call should have immediate effect on windows

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

11 years agostrdup instead of malloc/strcpy
Diederick Niehorster [Sun, 17 Mar 2013 09:09:41 +0000 (09:09 +0000)]
strdup instead of malloc/strcpy

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

11 years agosmall comment fix (this was not todo, we're not leaking memory here)
Diederick Niehorster [Sat, 16 Mar 2013 15:46:39 +0000 (15:46 +0000)]
small comment fix (this was not todo, we're not leaking memory here)

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

11 years agoon windows too: call resize callback only in response to WM message
Diederick Niehorster [Wed, 6 Mar 2013 09:27:18 +0000 (09:27 +0000)]
on windows too: call resize callback only in response to WM message
(yes, on both platform we now don't have an initial resize callback call, it'll be back later)

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

11 years agogamemode: just go fullscreen
Diederick Niehorster [Wed, 6 Mar 2013 09:17:52 +0000 (09:17 +0000)]
gamemode: just go fullscreen

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

11 years agonow have a default reshape callback function that is used if the user didn't set...
Diederick Niehorster [Wed, 6 Mar 2013 09:17:13 +0000 (09:17 +0000)]
now have a default reshape callback function that is used if the user didn't set any, instead of having what to do spread out over the code

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

11 years agofghHavePendingRedisplaysCallback: docs fixed up, and return without checking subwindo...
Diederick Niehorster [Wed, 6 Mar 2013 03:51:01 +0000 (03:51 +0000)]
fghHavePendingRedisplaysCallback: docs fixed up, and return without checking subwindows first if we have already found a window with pending redisplay

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

11 years agocomment on timer checking, are timers always sorted by triggertime? Else the code...
Diederick Niehorster [Wed, 6 Mar 2013 03:50:14 +0000 (03:50 +0000)]
comment on timer checking, are timers always sorted by triggertime? Else the code is wrong...

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

11 years agojoystick:
Diederick Niehorster [Wed, 6 Mar 2013 03:39:00 +0000 (03:39 +0000)]
joystick:
- only poll joysticks if we have an active joystick
- active joystick is defined as having callback and having positive (NON-ZERO!) pollInterval, as per GLUT sources
- use fgState.NumActiveJoysticks instead of fghHaveJoystick to save bunch of unnecessary function calls etc
- fghcbCheckJoystickPolls more concervative, per window we first check if a joystick is active (per above definition)

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

11 years agofghSleepForEvents immediately returns if we have an idle callback, so simply don...
Diederick Niehorster [Tue, 5 Mar 2013 17:08:32 +0000 (17:08 +0000)]
fghSleepForEvents immediately returns if we have an idle callback, so simply don't call the function at all if we just processed the idle callback

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