Commit Graph

  • 23e0e585ef fix 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
  • 4c1b2f7f71 small updates to API doc, some cleanup dcnieho 2013-04-05 13:40:32 +0000
  • ab06e7c64a more typos in progress page dcnieho 2013-04-05 12:28:54 +0000
  • 417f965466 added API docs for teacup and teaspoon dcnieho 2013-04-05 11:58:32 +0000
  • 3109425b80 no 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
  • d319d6d489 add glutSetMenuFont to API docs dcnieho 2013-04-05 11:34:06 +0000
  • 78385ffca4 document glutInitErrorFunc, glutInitWarningFunc, as well as FREEGLUT_PRINT_ERRORS and FREEGLUT_PRINT_WARNINGS dcnieho 2013-04-05 11:03:47 +0000
  • 467a9d3995 Change FREEGLUT_WARNINGS and *_ERRORS to FREEGLUT_PRINT_WARNINGS and *_ERRORS dcnieho 2013-04-05 10:51:07 +0000
  • b11381ff15 website: 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
  • 1bb4fa9988 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! dcnieho 2013-04-05 09:13:48 +0000
  • 3aaad918c1 noted incompleteness of glutInitDisplayString implementation and added call to help out dcnieho 2013-04-05 09:00:40 +0000
  • 066d495c81 fixed 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
  • 892fafec03 docs: glutPauseFunc/glutResumeFunc -> glutAppStatusFunc dcnieho 2013-04-05 03:52:59 +0000
  • ad30a17ccd user should include freeglut.h, not freeglut_ext.h dcnieho 2013-04-05 03:43:43 +0000
  • 1bdc52ff5d added 3.0 todo list and call for help dcnieho 2013-04-05 03:36:16 +0000
  • a78fe5852e forgot to add teapot to sourcelist for gles1 and gles2 builds dcnieho 2013-04-05 02:55:45 +0000
  • 06355842a6 finish up release announcement dcnieho 2013-04-05 02:14:17 +0000
  • c35fd2e601 first start at preparing 2.8.1 release on website dcnieho 2013-04-05 01:53:20 +0000
  • 0bb2219049 menu 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
  • afb16d74ea added cursor changing to resizer demo, for testing dcnieho 2013-04-04 11:04:17 +0000
  • a66dc9389e instead 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
  • 753f2f1163 some cleanup dcnieho 2013-04-04 10:36:44 +0000
  • c387bfee98 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! dcnieho 2013-04-04 10:20:43 +0000
  • e024949098 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 dcnieho 2013-04-04 10:13:45 +0000
  • 75dcd74677 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() dcnieho 2013-04-04 10:13:04 +0000
  • 58a343f2e3 error in checking if mouse is in window when opening menu... dcnieho 2013-04-04 10:12:02 +0000
  • 2f172a9cb0 dont wait till window visible when creating menu, as menu won't be shown until first use... dcnieho 2013-04-04 04:49:13 +0000
  • 62b5dadbe3 don'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
  • 9495df62ee variable 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
  • 52bd423f58 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. dcnieho 2013-04-04 01:29:17 +0000
  • dde06cbe5c change 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
  • b0d3a86555 to 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
  • 2811836c94 cleaned up a bunch of warnings dcnieho 2013-04-01 15:40:51 +0000
  • b7bbf6277e bit more cleanup dcnieho 2013-04-01 15:12:49 +0000
  • 86a5d3fc91 note about glutSetVertexAttribTexCoord2 in shapes demo dcnieho 2013-04-01 12:25:53 +0000
  • 67cd64fd7a implement setter for texture coord 2 (u,v) vertex attribute so it can be used by FreeGLUT dcnieho 2013-04-01 12:01:17 +0000
  • 1af0007c38 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 dcnieho 2013-04-01 11:46:20 +0000
  • 78b4e988c4 same as for all other geometry functions, teapot takes double, not GLdouble now. dcnieho 2013-03-31 09:46:27 +0000
  • 6581072673 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) dcnieho 2013-03-31 09:21:14 +0000
  • fc84854e33 wasn'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
  • eca6fc6749 normalizing line endings.. dcnieho 2013-03-19 16:34:21 +0000
  • 3d935ff946 added some beginner notes for compiling through cmake on Unix dcnieho 2013-03-19 14:50:44 +0000
  • dbad51f95b note 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
  • ace8df53ef strdup instead of malloc/strcpy dcnieho 2013-03-17 09:09:41 +0000
  • 24caa9843b small comment fix (this was not todo, we're not leaking memory here) dcnieho 2013-03-16 15:46:39 +0000
  • 7d4a63d970 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) dcnieho 2013-03-06 09:27:18 +0000
  • 9ae70d72c7 gamemode: just go fullscreen dcnieho 2013-03-06 09:17:52 +0000
  • b3b678a2f7 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 dcnieho 2013-03-06 09:17:13 +0000
  • d2991524cb fghHavePendingRedisplaysCallback: 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
  • 05fc819508 comment on timer checking, are timers always sorted by triggertime? Else the code is wrong... dcnieho 2013-03-06 03:50:14 +0000
  • 9c2936cd85 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) dcnieho 2013-03-06 03:39:00 +0000
  • 59ae6d2a56 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 dcnieho 2013-03-05 17:08:32 +0000
  • 7365dc38d4 error when entering main loop with no windows defined, as GLUT does dcnieho 2013-03-04 16:27:00 +0000
  • 9fa8bcf4db if 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
  • 5e97fed06a MenuStatusCallback 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
  • 5398d76b76 callign entryfunc should not steal the current window, so save before calling and restore after callback returns dcnieho 2013-03-04 09:25:15 +0000
  • 76f9c9a902 handling of mouse messages more conform docs, some cleanup dcnieho 2013-03-04 09:17:03 +0000
  • bf4a53a72e missed the windowproc return value dcnieho 2013-03-01 18:43:22 +0000
  • bab8eb3423 WM_PAINT more conform to docs dcnieho 2013-03-01 18:28:55 +0000
  • c8177024db document glutSetWindowTitle, glutSetIconTitle dcnieho 2013-03-01 17:44:44 +0000
  • 4edd89470b some 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
  • 78707f3e63 implemented 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
  • 736f745cc1 fixed 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
  • 7caa405f57 Visibility 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
  • c7656b8659 comment on implementation of window status callback dcnieho 2013-03-01 07:43:48 +0000
  • 4d83b5ab50 simplified some window rect calculations dcnieho 2013-03-01 07:41:23 +0000
  • 5e48d25cdb document coordinates returned by glutPositionFunc, other doc improvements regarding docs dcnieho 2013-03-01 07:15:20 +0000
  • 6d9e4fdb30 updated docs for fgPlatformMainLoopPreliminaryWork dcnieho 2013-03-01 06:50:15 +0000
  • 1d9ec8e1e9 implemented somewhat better visibility/windowstatus support, some small cleanup dcnieho 2013-03-01 05:53:51 +0000
  • f46574e263 library 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
  • 41dd280289 made fghVisibility more intuitive, documented glutVisibilityfunc and glutWindowStatusFunc dcnieho 2013-03-01 02:42:14 +0000
  • a2e3b9c31d fixed up docs a bit, provided docs for some functions dcnieho 2013-02-28 18:26:14 +0000
  • 8cafb13ec9 doc cleanup dcnieho 2013-02-28 17:41:20 +0000
  • 3299e79bdf files for demoing GLUT_ICON dcnieho 2013-02-28 17:40:45 +0000
  • cd92d7fdd2 fixed 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
  • 766e0cafc5 implemented GLUT_WINDOW_STENCIL_SIZE and GLUT_WINDOW_BUFFER_SIZE for glutGet dcnieho 2013-02-28 08:53:31 +0000
  • ccebf6f3df No 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
  • c0522d1fcf updated README to point to README.cmake for building dcnieho 2013-02-27 12:07:26 +0000
  • 953dcc637c now 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
  • a5ed343b38 Mousemotion 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
  • 371adb260e fgDeactivateMenu could sometimes be called twice on the same menu, avoid crash in that situation dcnieho 2013-02-27 10:29:24 +0000
  • 5fe69bdac1 GLUT_CURSOR_INHERIT now works, also implemented another cursor dcnieho 2013-02-27 09:35:38 +0000
  • 0d353df338 should return zero after processing any of the mouse button down or up events dcnieho 2013-02-27 08:18:09 +0000
  • b362113e1f Only do mouse tracking for EntryFunc if user specified an entryfunc dcnieho 2013-02-27 08:06:24 +0000
  • 3eda176577 Now implemented properly working mouse entry and exit (EntryFunc callback) support on windows dcnieho 2013-02-27 07:52:55 +0000
  • eccb722d20 demo glutSetCursor dcnieho 2013-02-27 07:07:55 +0000
  • 9652d57d4f Simplified fghWindowUnderCursor, cleane dup code dcnieho 2013-02-27 07:01:43 +0000
  • 363c2c363a Only check for child window when needed, some cleanup dcnieho 2013-02-27 06:18:20 +0000
  • 8363fa9507 WM_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
  • 6f9152c92e Use 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
  • b1274e9078 added API doc for glutSetKeyRepeat and glutIgnoreKeyRepeat dcnieho 2013-02-27 04:58:23 +0000
  • 00260311f3 clean up glutSetKeyRepeat function body dcnieho 2013-02-27 04:44:14 +0000
  • e9318d4e55 Added 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
  • 71c6054fe0 added modifier key status to callbackmaker output, also added entryfunc dcnieho 2013-02-27 03:58:05 +0000
  • ddda931bac reworked 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
  • 5fa61c0c64 subwin demo now has a grandchild (subwin in subwin) for testing dcnieho 2013-02-26 16:14:41 +0000
  • 3b5f3573a1 some 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
  • fdbb8086ed better name for key up/down function dcnieho 2013-02-26 15:21:34 +0000