a6e021db4awin API docs say that defWndProc must be called for system keydown/keyup
dcnieho
2013-02-26 15:20:18 +0000
cf6e2a419cwin32: updating keyboard down/up handling. Split off to own function that deals with both down and up to reduce code duplication. Also only get async keystate to see if left or right alt, control, shift is pressed/released when a press on one of these is detected in the first place, not with every message that comes in.
dcnieho
2013-02-26 15:05:41 +0000
813addede1moving fgPlatformReshapeWindow and fgPlatformDisplayWindow from fg_main_x to fg_window_x. Hope this didn't break anything for X11 or andriod
dcnieho
2013-02-13 10:28:26 +0000
4f1f85c231api doc for glutWMClosefunc was wrong....
dcnieho
2013-02-13 09:48:51 +0000
dae7120ed5now have 64bit internal time on Windows, as we deal with wrap of timeGetTime manually
dcnieho
2013-02-09 11:59:32 +0000
17a8372217can now configure build such that runtime warnings and/or errors occuring in lib are not printed to stderr (thanks Nigel Steward)
dcnieho
2013-01-27 12:38:28 +0000
f79dae9865smoothgl3 and shapes demos, now checking if glutGetProcAddress calls give us valid function pointers
dcnieho
2013-01-27 11:56:32 +0000
05a9a7c907Make CTRL and SHIFT arrive properly in single (as opposed to MultiButton) mouse events, thanks Philipp!
dcnieho
2013-01-17 14:53:30 +0000
ff0366185fremoved unnecessary token pasting (##) preprocessor directives that blew up some builds. thanks Phillip Kutin!
dcnieho
2012-12-18 05:13:42 +0000
afdc54e910kicking out the FGCBSelect function prototype that has been here since the beginning of times (r3), but is not used anywhere and has no equivalent in GLUT
dcnieho
2012-11-24 01:18:34 +0000
809dad066bargh! commit 1485 was cut and paste instead of copy paste...
dcnieho
2012-11-23 10:35:24 +0000
231f05cf2ctiny cosmetics in resizer demo
dcnieho
2012-11-23 09:43:18 +0000
0715a20796that was too quick, fgStructure.CurrentWindow can be NULL when glutGetting window width or height
dcnieho
2012-11-23 09:42:54 +0000
1917f56dceGLUT_WINDOW_WIDTH and GLUT_WINDOW_HEIGHT can simply be gotten from the window's state. This also simplifies GLUT_WINDOW_X and GLUT_WINDOW_Y a lot
dcnieho
2012-11-23 09:31:52 +0000
0eb960d0a1prevent resize callback (and indeed the whole resizing logic) from getting called twice
dcnieho
2012-11-23 09:30:57 +0000
9d51152ba6timer func now changes two colors alternatingly, using multiple active timers
dcnieho
2012-11-23 08:40:13 +0000
95b2935ce9nicer output to terminal in Position callback
dcnieho
2012-11-23 08:22:28 +0000
409ca5b133now providing new position of child relative to parent in the position callback also need to set position func for the child window in the resizer demo
dcnieho
2012-11-23 08:21:24 +0000
9db85cd9b3resizer demo now uses timer to display window information
dcnieho
2012-11-23 08:03:20 +0000
6badc4e20aremoved unnecessary calls to SetWindowPos when entering and leaving fullscreen mode. This caused the Position callback to fire more than necessary
dcnieho
2012-11-23 07:51:10 +0000
aa38dc56b4implemented position callback on windows and some other minor edits
dcnieho
2012-11-23 07:41:39 +0000
a0b41213a5prepared callbackmaker for testing position callback
dcnieho
2012-11-23 07:06:57 +0000
4f66100b51used a macro to remove all the code repetition in fg_callbacks.c
dcnieho
2012-11-23 06:55:52 +0000
d1efa5eb48added glutPositionFunc callback, now just need to implement so it does something For all callbacks now using function type definitions from fg_internal.h. Reorganized and cleaned up fg_callbacks.c so that there are no wrong comments in there (timers are global, not per window) and so that all global, per menu, and per window callbacks are grouped together
dcnieho
2012-11-23 06:40:06 +0000
a99ea4e190looked into purpose of glutWMCloseFunc, it was to prevent the window on which the callback is called from being closed. The ultimate aim was to prevent GLUT from exiting. We do this in a different way, which is added to the docs in the discussion of glutCloseFunc
dcnieho
2012-11-23 06:13:31 +0000
6724c68a10also added note about glutWMCloseFunc to docs, and forgot to put glugCloseFunc in the index.
dcnieho
2012-11-23 05:35:31 +0000
13a5f957f7added WCB_Position callback in callback table (only so far), code for zeroing callbacks upon window creation continues to work correctly
dcnieho
2012-11-23 05:26:36 +0000
e81ec9d7cddocumenting glutCloseFunc. Thanks Phillip Kutin for the patch!
dcnieho
2012-11-23 00:50:02 +0000
bfddcf9f7esome reorganization in docs as well, some callbacks missing or misplaced
dcnieho
2012-11-22 06:05:30 +0000
419e4793b0more cleanup in callbackmaker demo, now showing best practice for various callback. also added menustate/menustatus callbacks
dcnieho
2012-11-22 05:52:02 +0000
d07f4255becleaned up callback registering code in One demo, now its best practice
dcnieho
2012-11-22 05:49:53 +0000
79f3a0d64dsome callback naming cosmetics as suggested in an old comment
dcnieho
2012-11-22 05:27:19 +0000
eb968382e8extensive changes in callbackmaker: each of the two windows now has its own events registered and displayed separately
dcnieho
2012-11-22 04:38:03 +0000
a85eaf5632nicely lining up the two windows for the callbackmaker demo, small other edit
dcnieho
2012-11-21 08:30:47 +0000
74b361d347now using WHEEL_DELTA for mouse wheel processing, instead of a magic number
dcnieho
2012-11-21 05:15:31 +0000
2359c3cc11wrote macro for the special key checks (shift, alt, ctrl) to significantly reduce code length (and it was copy-paste code anyway)
dcnieho
2012-11-21 04:18:32 +0000
507338a816small enhancement to Callbackmaker demo
dcnieho
2012-11-20 08:57:18 +0000
26a07b9ef3small updates to one demo, so windowed windows display after the gamemode window is closed
dcnieho
2012-11-20 05:25:14 +0000
cd50f5fd92forgot docs for last change
dcnieho
2012-11-20 02:23:47 +0000
d01664a8bfwhen entering game mode, now avoiding call to ChangeDisplaySettingsEx when not necessary. Avoids flashing of the screen
dcnieho
2012-11-20 02:17:31 +0000
2de980d6b4some comments missing in shapes demo
dcnieho
2012-11-20 02:15:43 +0000
5fb529348acosmetics in one demo
dcnieho
2012-11-19 13:32:44 +0000
0517f0e543pulling in cleanup from r1442
dcnieho
2012-11-19 13:16:17 +0000
9ec740114aspecified in docs with geometric objects need depth test enabled for correct rendering
dcnieho
2012-11-19 12:52:31 +0000
1759c0ef92shapes demo: now only draw necessary size info, and calling that info by the right name.
dcnieho
2012-11-19 02:46:34 +0000
eec680a34bfixed normals of glutCone, thanks Ioannis! Also now using irad as base input for cone and cylinder, while using orad as height. Without that the problem can't be seen in our demo
dcnieho
2012-11-19 02:26:07 +0000
7e1599594cGLUT_GEOMETRY_VISUALIZE_NORMALS is a better name than GLUT_OBJECTS_VISUALIZE_NORMALS
dcnieho
2012-11-19 02:01:52 +0000
bc89db3fb9can now visualize normals of GLUT geometry in GL2 mode as well
dcnieho
2012-11-19 01:54:28 +0000
6b77283fc1size of cuboctahedron in shapes demo now in line with other shapes. and resizes along with the other shapes
dcnieho
2012-11-18 15:55:55 +0000
b6f1526f6eshapes demo: cuboctahedron is from the demo itself and not from FreeGLUT geometry. Hence not supported in shader drawing mode. Now skipping it
dcnieho
2012-11-18 15:49:27 +0000
465ff5d0d1can now also draw the normal vectors (seems very useful for instructive programs, something which FreeGLUT often gets used for). use the 'n' key in the shapes demo
dcnieho
2012-11-18 15:41:03 +0000
1f1768f07eadded note to docs that depth test is needed for correct drawing of some of the objects
dcnieho
2012-11-18 03:45:34 +0000
5a0d107a9cwrote out the ipow function so its easier to mentally parse
dcnieho
2012-11-18 03:31:47 +0000
82cfc20eacsmall enhancements to shapes demo: - pitch and yaw rotation speeds are now prime numbers so we don't have a repeating cycle - made window slightly larger so we have more space for the info printed - added info for 2D rotation vs 1D rotation - added keys to info where they were missing
dcnieho
2012-11-18 03:30:54 +0000
a1daa9fc77fixed install target: - freeglut shared library now in /bin dir, as is its pdb file - its import library, the static library and the static lib's debug info are installed in /lib
dcnieho
2012-11-17 02:20:20 +0000
a7771ab4b2menus attached to child windows did not appear in the right place. Fixed in fghActivateMenu, whose logic is now simpler and commented as well
dcnieho
2012-11-17 01:02:30 +0000
610b006221now have function to get window style based on FreeGLUT's stateflag (fgState.DisplayMode) so that window decoration specification is only in one place in the code. Also, glutGet(GLUT_WINDOW_BORDER_WIDTH); and glutGet(GLUT_WINDOW_HEADER_HEIGHT); now return the right sizes, i.e., taking the display mode into account, for the border and caption when no window is created yet
dcnieho
2012-11-17 00:03:10 +0000
dec5717f1eadded note about maximizing behavior on Windows (when the maximize window tool is pressed by the user) -- resize borders are by default of the screen to maximize the client area. Lets not change this as FreeGLUT has stuck with this default for a long time.
dcnieho
2012-11-16 15:07:33 +0000
0500cfdf4creimplemented the client-area/window-area conversion code. It should now be robust across Windows and Visual Studio versions. Bugs in window size with VS2012 fixed!
dcnieho
2012-11-16 11:02:06 +0000
9241bedc2fincluding OpenGL/gl.h and OpenGL/glu.h when on apple platform
dcnieho
2012-11-16 00:14:55 +0000
45f45042c2fixing conflicts with opengl headers on some systems, same solution as by John in r1385
dcnieho
2012-09-25 07:46:25 +0000
767cf1bcbeGLUT_WINDOW_HEADER_HEIGHT should always have been GLUT_WINDOW_BORDER_HEIGHT. Adding the second, keeping the first for backward compatibility
dcnieho
2012-09-25 07:39:13 +0000
eae233fe6efixed shader route in shapes demo: - small bug in gl_frustum implementation in matrix lib, element (4,4) should be 0 - default OpenGL ambient color is (.2, .2, .2, 1.), not black little bit of formatting
dcnieho
2012-08-13 04:59:48 +0000
b76e745afcshapes demo: material color now set to red in shader, ambient light off again. looks better now that i understand light a bit better
dcnieho
2012-08-13 02:57:30 +0000
b8ea74d51eThe mapping from XInput button mask to the standard X event button mask is not 1-1, fixed.
jtsiomb
2012-08-09 01:36:31 +0000
03fea19290- trying to fix bug 2781865
jtsiomb
2012-08-07 11:15:01 +0000
d598173a25also add an InvalidateRect call before the BeginPaint in WM_PAINT handler.this ensures the whole window is repainted, and hopefully fixes some bug reports.
dcnieho
2012-08-06 15:05:10 +0000
80ed4c02f9better to put code to check if menu should be deactivated in fg_menu_mswin.c
dcnieho
2012-08-06 15:03:20 +0000
c1492ab1efsome doc on why not using GetClientRect for getting the position of the client rect on the screen
dcnieho
2012-08-06 03:10:33 +0000
19c5ab0140calling glutExit in the erro callback is a really bad example...
dcnieho
2012-08-05 04:28:57 +0000
4c740e0f35gamemode-x11: fixed the conditions checking for XR&R >= 1.1, as it where they would match 1.0 too
jtsiomb
2012-07-31 14:33:26 +0000
01d00ef0d0forgot to set use to true (not that its useful, but avoid confusion that could arise when returning false)
dcnieho
2012-07-29 05:33:07 +0000
3173417248attempt to implement fghPlatformGetCursorPos on X11
dcnieho
2012-07-29 05:28:10 +0000
89df7d96edfg_cursor is a much better place for code reading the mouse position
dcnieho
2012-07-29 05:18:36 +0000
faf732bda6some cleanup now have function fghPlatformGetMousePos to get current mouse position in screen coordinates Using this in fg_menu as all that code should be platform independent
dcnieho
2012-07-29 05:11:53 +0000
3162c53c9fFixed broken X11 menus. The MPX patch would naively just call the standard (non-multi) callbacks directly, overriding all the menu-handling logic in the standard X event processing loop.
jtsiomb
2012-07-29 04:11:01 +0000
8c81fedaa0little bit of cleanup and extra comments
dcnieho
2012-07-26 15:11:37 +0000
fc4d999897the Callbackmaker demo, with its window close callback, is a nice place to test glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE,GLUT_ACTION_CONTINUE_EXECUTION) working fine :)
dcnieho
2012-07-24 17:43:12 +0000
1b92446cddadding option (on windows) to also install .pdb files
dcnieho
2012-07-24 17:38:58 +0000
2a1ed68305fix to smooth demo to work with GL 3.3 and higher, thanks Neil Mannall (bug tracker ID 3496257)!
dcnieho
2012-07-24 15:37:28 +0000
fc3aa8f406added warning and error callbacks to demo
dcnieho
2012-07-24 15:03:53 +0000
0e41b344b8implementing menu status callback Now erroring out when trying to modify menu when a menu is currently active small fix to callbackmaker: glutMenuDestroyFunc is per defined menu
dcnieho
2012-07-24 14:37:42 +0000
8fb0c5d924glutGet(GLUT_WINDOW_X) and glutGet(GLUT_WINDOW_Y) on a child window now return top-left of child w.r.t. parent's client area resizer demo now also has child window button 'c'. doesn't work with fullscreen for some reason....
dcnieho
2012-07-23 13:52:55 +0000
b5664b39e7some cleanup of one demo. added menu back in gamemode Now proper animation whose speed does not depend on the number of windows currently open Got some flicker in gamemode when other windows (that weren't visible) were also updated (only occurs when child windows present). Simply no drawing to these windows fixes things - one shouldn't draw anyway as they aren't visible.
dcnieho
2012-07-23 10:37:40 +0000
c2266aa027now added fix suggested by Ioannis to make menus work when an entryfunc is defined for the window
dcnieho
2012-07-23 09:51:34 +0000
fe05157a34Should only do check if mouse is outside client area when not opening a submenu as well...
dcnieho
2012-07-23 09:50:14 +0000
985693f528child window now only used for keyboard callbacks and setting focus in windowproc, was a bit overeager before
dcnieho
2012-07-23 08:52:50 +0000
dba5bb070enow also closing menus when non-client area is pressed (thanks for suggestions Ioannis!)
dcnieho
2012-07-23 07:04:06 +0000
fc2ee24b1bWhen receiving WM_SETFOCUS, check if its child window that should actually get focus That fixes corner case issue with menus in main and child windows being open at the same time
dcnieho
2012-07-23 07:00:14 +0000
77ae3c4f4cadded one more child window (child-of-child) to one demo for testing
dcnieho
2012-07-23 06:55:45 +0000
4c8096c90cnow checking for NULL window in fgDeactivateMenu (thanks for Ioannis to point out this occurs) now dealing with the aftermath of the corner case bugs of different menus in main and child windows both being open at the same time (which is a bug in itself, but can't figure out a fix). No more crash at least!
dcnieho
2012-07-22 10:54:39 +0000
7cdcd49c93added entry callback to one demo
dcnieho
2012-07-22 10:03:36 +0000
662a168536argh, some debug code made it in (don't commit and then make changes to the file before its fully transmitted...)
dcnieho
2012-07-21 14:19:38 +0000
2be86de619some clean up in WM_KILLFOCUS handler
dcnieho
2012-07-21 14:18:13 +0000