23e0e585effix in fgUpdateMenuHighlight: clicked entry is always the active entry already, so no while loop. also, ignore clicks on a submenu's parent entry
dcnieho
2013-04-06 10:14:41 +0000
4c1b2f7f71small updates to API doc, some cleanup
dcnieho
2013-04-05 13:40:32 +0000
ab06e7c64amore typos in progress page
dcnieho
2013-04-05 12:28:54 +0000
417f965466added API docs for teacup and teaspoon
dcnieho
2013-04-05 11:58:32 +0000
3109425b80no idea where this folder came from, think its an error of my git-svn client. anyway, removing...
dcnieho
2013-04-05 11:39:14 +0000
d319d6d489add glutSetMenuFont to API docs
dcnieho
2013-04-05 11:34:06 +0000
78385ffca4document glutInitErrorFunc, glutInitWarningFunc, as well as FREEGLUT_PRINT_ERRORS and FREEGLUT_PRINT_WARNINGS
dcnieho
2013-04-05 11:03:47 +0000
467a9d3995Change FREEGLUT_WARNINGS and *_ERRORS to FREEGLUT_PRINT_WARNINGS and *_ERRORS
dcnieho
2013-04-05 10:51:07 +0000
b11381ff15website: fixed errors in 3.0 roadmap (thank Ines Almeida!) Moved up the help out item in the left-side menu improved several texts i wrote earlier today.
dcnieho
2013-04-05 10:34:28 +0000
1bb4fa9988implemented 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!
dcnieho
2013-04-05 09:13:48 +0000
3aaad918c1noted incompleteness of glutInitDisplayString implementation and added call to help out
dcnieho
2013-04-05 09:00:40 +0000
066d495c81fixed docs for glut*Torus, per suggestion of Chris Marshall. much more understandable now indeed. Also changed GLdouble params of geometry functions to normal doubles to match code in trunk
dcnieho
2013-04-05 08:48:33 +0000
ad30a17ccduser should include freeglut.h, not freeglut_ext.h
dcnieho
2013-04-05 03:43:43 +0000
1bdc52ff5dadded 3.0 todo list and call for help
dcnieho
2013-04-05 03:36:16 +0000
a78fe5852eforgot to add teapot to sourcelist for gles1 and gles2 builds
dcnieho
2013-04-05 02:55:45 +0000
06355842a6finish up release announcement
dcnieho
2013-04-05 02:14:17 +0000
c35fd2e601first start at preparing 2.8.1 release on website
dcnieho
2013-04-05 01:53:20 +0000
0bb2219049menu fonts API improved No more glutSetOption, casting void* to int and back is not safe glutSetMenuFont now takes menuID as param
dcnieho
2013-04-04 14:32:29 +0000
afb16d74eaadded cursor changing to resizer demo, for testing
dcnieho
2013-04-04 11:04:17 +0000
a66dc9389einstead of separate Pause and Resume CBs, we now have a AppStatus CB which passes flags to indicate which state was entered. more extensible
dcnieho
2013-04-04 10:54:44 +0000
c387bfee98and 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!
dcnieho
2013-04-04 10:20:43 +0000
e024949098menu 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
dcnieho
2013-04-04 10:13:45 +0000
75dcd74677can now set the font used for a menu set default font using glutSetOption(GLUT_MENU_FONT,...) and set font of current menu using glutSetMenuFont()
dcnieho
2013-04-04 10:13:04 +0000
58a343f2e3error in checking if mouse is in window when opening menu...
dcnieho
2013-04-04 10:12:02 +0000
2f172a9cb0dont wait till window visible when creating menu, as menu won't be shown until first use...
dcnieho
2013-04-04 04:49:13 +0000
62b5dadbe3don't show window when creating menu (better fix then making it very small and hiding it asap...
dcnieho
2013-04-04 04:28:53 +0000
9495df62eevariable declaration in wrong place
dcnieho
2013-04-04 02:08:55 +0000
0685ee4d0d- 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
dcnieho
2013-04-04 01:56:39 +0000
52bd423f58using 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.
dcnieho
2013-04-04 01:29:17 +0000
dde06cbe5cchange CMAKE_SOURCE_DIR to CMAKE_CURRENT_SOURCE_DIR as requested on tracker ( Jim ( d3x0r ) - 2013-03-18 11:36:51 PDT )
dcnieho
2013-04-04 01:23:27 +0000
b0d3a86555to check for menu opening/closing upon button press, should pass cursor position in the window, not in the root window
dcnieho
2013-04-03 11:20:56 +0000
2811836c94cleaned up a bunch of warnings
dcnieho
2013-04-01 15:40:51 +0000
b7bbf6277ebit more cleanup
dcnieho
2013-04-01 15:12:49 +0000
86a5d3fc91note about glutSetVertexAttribTexCoord2 in shapes demo
dcnieho
2013-04-01 12:25:53 +0000
67cd64fd7aimplement setter for texture coord 2 (u,v) vertex attribute so it can be used by FreeGLUT
dcnieho
2013-04-01 12:01:17 +0000
1af0007c38further 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
dcnieho
2013-04-01 11:46:20 +0000
78b4e988c4same as for all other geometry functions, teapot takes double, not GLdouble now.
dcnieho
2013-03-31 09:46:27 +0000
6581072673teapot 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)
dcnieho
2013-03-31 09:21:14 +0000
fc84854e33wasn't using GLbooleans in this platform independent part of the code (e.g. used TRUE instead of GL_TRUE)
dcnieho
2013-03-21 05:23:31 +0000
eca6fc6749normalizing line endings..
dcnieho
2013-03-19 16:34:21 +0000
3d935ff946added some beginner notes for compiling through cmake on Unix
dcnieho
2013-03-19 14:50:44 +0000
dbad51f95bnote on use of gluint/glushort in fg_geometry
dcnieho
2013-03-19 10:23:18 +0000
074ae923ab- 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
dcnieho
2013-03-17 14:01:46 +0000
ace8df53efstrdup instead of malloc/strcpy
dcnieho
2013-03-17 09:09:41 +0000
24caa9843bsmall comment fix (this was not todo, we're not leaking memory here)
dcnieho
2013-03-16 15:46:39 +0000
7d4a63d970on 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)
dcnieho
2013-03-06 09:27:18 +0000
9ae70d72c7gamemode: just go fullscreen
dcnieho
2013-03-06 09:17:52 +0000
b3b678a2f7now 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
dcnieho
2013-03-06 09:17:13 +0000
d2991524cbfghHavePendingRedisplaysCallback: docs fixed up, and return without checking subwindows first if we have already found a window with pending redisplay
dcnieho
2013-03-06 03:51:01 +0000
05fc819508comment on timer checking, are timers always sorted by triggertime? Else the code is wrong...
dcnieho
2013-03-06 03:50:14 +0000
9c2936cd85joystick: - 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)
dcnieho
2013-03-06 03:39:00 +0000
59ae6d2a56fghSleepForEvents immediately returns if we have an idle callback, so simply don't call the function at all if we just processed the idle callback
dcnieho
2013-03-05 17:08:32 +0000
7365dc38d4error when entering main loop with no windows defined, as GLUT does
dcnieho
2013-03-04 16:27:00 +0000
9fa8bcf4dbif user opens menu in parent window and then clicked child window, the menu wasn't closed. Fixed (and some cleanup)
dcnieho
2013-03-04 10:18:35 +0000
5e97fed06aMenuStatusCallback when menu was closed did not return location of pointer relative to child window's top-left, it only worked for top level windows. To make this work, fghPlatformGetCursorPos now can return cursor pos relative to top-left of a specified window's client area (this is untested on X11)
dcnieho
2013-03-04 09:54:55 +0000
5398d76b76callign entryfunc should not steal the current window, so save before calling and restore after callback returns
dcnieho
2013-03-04 09:25:15 +0000
76f9c9a902handling of mouse messages more conform docs, some cleanup
dcnieho
2013-03-04 09:17:03 +0000
bf4a53a72emissed the windowproc return value
dcnieho
2013-03-01 18:43:22 +0000
bab8eb3423WM_PAINT more conform to docs
dcnieho
2013-03-01 18:28:55 +0000
4edd89470bsome cleanup: on window creation, don't have to zero variables that already set to zero by calloc in windowproc, don't have handlers that only forward the message to defwindowproc
dcnieho
2013-03-01 17:22:34 +0000
78707f3e63implemented glutSetIconTitle that works on win32, when a window is minimized, its title is now changed, and changed back when it is restored
dcnieho
2013-03-01 17:20:47 +0000
736f745cc1fixed up handling of WM_MOUSEWHEEL, low order of wParam is not the mouse wheel number, but indicates which virtual keys are pressed during the scroll wheel motion
dcnieho
2013-03-01 15:42:26 +0000
7caa405f57Visibility functions better implemented now. All goes through WM_SHOWWINDOW except for a newly created window (WM_SHOWWINDOW is too early for callback then). I now have a state variable that indicates whether visibility has been notified yet for a new window. This notification gets done just before the window is first drawn. This removes the need for fgPlatformMainLoopPreliminaryWork on windows, and it also works for windows created when the mainloop is already running
dcnieho
2013-03-01 10:31:34 +0000
c7656b8659comment on implementation of window status callback
dcnieho
2013-03-01 07:43:48 +0000
4d83b5ab50simplified some window rect calculations
dcnieho
2013-03-01 07:41:23 +0000
5e48d25cdbdocument coordinates returned by glutPositionFunc, other doc improvements regarding docs
dcnieho
2013-03-01 07:15:20 +0000
6d9e4fdb30updated docs for fgPlatformMainLoopPreliminaryWork
dcnieho
2013-03-01 06:50:15 +0000
1d9ec8e1e9implemented somewhat better visibility/windowstatus support, some small cleanup
dcnieho
2013-03-01 05:53:51 +0000
f46574e263library should call window status func at all times, translation to visibility callback happens if needed. Documented this, and added notes on visibility/windowstatus func in callbackmaker demo
dcnieho
2013-03-01 03:08:05 +0000
41dd280289made fghVisibility more intuitive, documented glutVisibilityfunc and glutWindowStatusFunc
dcnieho
2013-03-01 02:42:14 +0000
a2e3b9c31dfixed up docs a bit, provided docs for some functions
dcnieho
2013-02-28 18:26:14 +0000
3299e79bdffiles for demoing GLUT_ICON
dcnieho
2013-02-28 17:40:45 +0000
cd92d7fdd2fixed documentation for GLUT_ICON (its not an environment variable, but an identifier for a resource file) and added an example of it for the One demo
dcnieho
2013-02-28 13:40:28 +0000
766e0cafc5implemented GLUT_WINDOW_STENCIL_SIZE and GLUT_WINDOW_BUFFER_SIZE for glutGet
dcnieho
2013-02-28 08:53:31 +0000
ccebf6f3dfNo need to handle WM_CANCELMODE, defwindowproc takes care of it (releasing capture), and we have WM_CAPTURECHANGED to make sure our application is in consistent state
dcnieho
2013-02-27 12:11:33 +0000
c0522d1fcfupdated README to point to README.cmake for building
dcnieho
2013-02-27 12:07:26 +0000
953dcc637cnow that mouse capture was properly implemented, menus could be opened outside the window when the window had capture because another mouse button was depressed. fixed Also implemented WM_CANCELMODE, which could be important as we should cancel capture when it comes in
dcnieho
2013-02-27 11:36:14 +0000
a5ed343b38Mousemotion events now generated outside the window until all mouse buttons released, as is done on X11 (according to comments i now deleted)
dcnieho
2013-02-27 10:46:13 +0000
371adb260efgDeactivateMenu could sometimes be called twice on the same menu, avoid crash in that situation
dcnieho
2013-02-27 10:29:24 +0000
5fe69bdac1GLUT_CURSOR_INHERIT now works, also implemented another cursor
dcnieho
2013-02-27 09:35:38 +0000
0d353df338should return zero after processing any of the mouse button down or up events
dcnieho
2013-02-27 08:18:09 +0000
b362113e1fOnly do mouse tracking for EntryFunc if user specified an entryfunc
dcnieho
2013-02-27 08:06:24 +0000
3eda176577Now implemented properly working mouse entry and exit (EntryFunc callback) support on windows
dcnieho
2013-02-27 07:52:55 +0000
363c2c363aOnly check for child window when needed, some cleanup
dcnieho
2013-02-27 06:18:20 +0000
8363fa9507WM_SETFOCUS should not change focus to child instead, then all input goes to child even if it should go to parent. Mousewheel needed to check if actually in child, other mouse action (move, press) are automatically passed to child
dcnieho
2013-02-27 06:11:51 +0000
6f9152c92eUse GetMessagePos, not GetCursorPos to make sure we get the right mouse position. Also, no need to get mouse position at time of keypress, every mouse movement before the keypress is processed in an earlier WM_MOUSE message already, so mouse position in the window state is all we need.
dcnieho
2013-02-27 05:58:56 +0000
b1274e9078added API doc for glutSetKeyRepeat and glutIgnoreKeyRepeat
dcnieho
2013-02-27 04:58:23 +0000
00260311f3clean up glutSetKeyRepeat function body
dcnieho
2013-02-27 04:44:14 +0000
e9318d4e55Added subwindows to CallbackMaker demo, for testing and demonstration. Also figured out how key repeat's global and per-window flags are supposed to interact, documented and demonstrated it.
dcnieho
2013-02-27 04:36:48 +0000
71c6054fe0added modifier key status to callbackmaker output, also added entryfunc
dcnieho
2013-02-27 03:58:05 +0000
ddda931bacreworked fullscreen code based on implementation of Chromium. can now handle/restore windows in maximized state and no longer uses WS_POPUP.
dcnieho
2013-02-26 16:49:19 +0000
5fa61c0c64subwin demo now has a grandchild (subwin in subwin) for testing
dcnieho
2013-02-26 16:14:41 +0000
3b5f3573a1some msgs only sent to parent window, find child under cursor. This before only search for childs of the parent, not grandchilds or more derived. Fixed
dcnieho
2013-02-26 16:13:09 +0000
fdbb8086edbetter name for key up/down function
dcnieho
2013-02-26 15:21:34 +0000