Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2020-10-21 | Add missing include guards | David Robillard | 1 | -0/+5 | |
2020-10-19 | Gracefully handle puglRealize() being called twice | David Robillard | 1 | -0/+100 | |
2020-10-14 | Suppress IWYU warnings in build tests | David Robillard | 2 | -14/+14 | |
2020-10-04 | Add refresh rate hint | David Robillard | 3 | -0/+6 | |
2020-10-04 | Print all view hints in shader demo and hint tests | David Robillard | 3 | -0/+55 | |
2020-10-04 | Add puglGetViewHint() | David Robillard | 2 | -0/+163 | |
This allows retrieving properties of the view that may be needed, such as the actual bit depth (which may vary from the suggested depth provided as a hint). | |||||
2020-07-05 | Improve struct packing | David Robillard | 4 | -12/+12 | |
Unfortunately there is no warning like Wpadded but only for internal padding, so that can't be turned on, but if there was, after this commit the build would be clean with it. Maybe some day... | |||||
2020-07-05 | Ensure that all API headers are warning-free | David Robillard | 2 | -0/+70 | |
2020-07-05 | Add scroll direction field | David Robillard | 1 | -1/+21 | |
2020-07-05 | Print crossing mode of enter and leave events | David Robillard | 1 | -4/+6 | |
2020-07-05 | Replace grab flag in PuglEventFocus with crossing mode | David Robillard | 1 | -4/+19 | |
2020-07-02 | Fix cast alignment warnings on 32-bit ARM | David Robillard | 1 | -2/+4 | |
2020-05-16 | Add default and maximum size | David Robillard | 4 | -0/+4 | |
2020-05-16 | Use email address in copyright headers | David Robillard | 5 | -5/+5 | |
Not really sure why I used a web link here (maybe because it's more stable), but this is more conventional. | |||||
2020-05-16 | Fix redisplay test on MacOS | David Robillard | 1 | -3/+9 | |
This does two things: posts the redisplay when an update event is received (which is correct pattern for this now), and uses larger even numbers for the redisplay region so they make it through the pixel/point conversion process without loss. | |||||
2020-05-16 | Make show/hide test tolerant to multiple exposures | David Robillard | 1 | -1/+1 | |
This happens on MacOS. | |||||
2020-04-04 | Fix mismatched printf parameter warning | David Robillard | 1 | -2/+1 | |
Compilers are allowed to choose signed or unsigned for enums, and apparently gcc and c++ make different choices. | |||||
2020-04-01 | Replace puglShowWindow() with puglRealize() | David Robillard | 4 | -4/+4 | |
2020-03-31 | Add format attribute to logError() | David Robillard | 1 | -1/+8 | |
2020-03-31 | Fix mismatched printf parameter types | David Robillard | 1 | -2/+2 | |
2020-03-17 | Use clearer names for pointer events | David Robillard | 1 | -3/+3 | |
These old "notify" names are a smell from X11 which is a bit strange and inconsistent here, since nearly everything is a "notification" of sorts. I think the new names here are much more clear since they are consistent with the keyboard focus events. | |||||
2020-03-16 | Cleanup: Add missing includes | David Robillard | 1 | -0/+2 | |
2020-03-16 | Add timer events | David Robillard | 2 | -0/+160 | |
2020-03-16 | Make update test more tolerant | David Robillard | 1 | -1/+1 | |
2020-03-15 | Cleanup: Fix stale comment | David Robillard | 1 | -2/+2 | |
2020-03-15 | Unify event loop functions as puglUpdate() | David Robillard | 4 | -14/+137 | |
The previous separation between polling and dispatching was a lie, especially on MacOS where it is impossible to only poll for events without dispatching anything. Providing such an API is misleading, and problematic in various other ways. So, merge them into a single puglUpdate() function which can do the right thing on all platforms. This also adds the behaviour of actually processing all events in the given time interval, which is almost always what clients actually want to do when using a positive timeout (naively doing this before caused terrible input lag). | |||||
2020-03-15 | Add type and flags to world | David Robillard | 2 | -2/+2 | |
Unfortunately this is an API break, but there's no reasonable way to deprecate the old function and this is required for things to work correctly. The type will be used in following commits to tick the main loop and dispatch events correctly for either case. | |||||
2020-03-15 | Cleanup: Fix indentation | David Robillard | 1 | -3/+3 | |
2020-03-09 | Add test for redisplays posted in the event loop | David Robillard | 1 | -0/+133 | |
2020-03-09 | Add PuglEventClient and puglSendEvent() | David Robillard | 1 | -0/+8 | |
This event makes it possible to send an arbitrary event to a view, which is useful for many things. In particular, this method of communication with views will wake up the event loop, unlike hacks in applications that share data in some other way. | |||||
2020-03-09 | Add test for basic view creation, exposure, and destruction | David Robillard | 1 | -0/+149 | |
2020-03-09 | Add create, destroy, map, and unmap events | David Robillard | 1 | -0/+8 | |
These can be used to do things when a view is created or destroyed, in particular set up the GL context in a more controlled way. Map and unmap events are also added for when views are shown and hidden so application can react to this as well. Towards the deprecation of puglEnterContext() and puglLeaveContext(), which are prone to abuse. squash! Remove client event stuff | |||||
2020-03-08 | Enable double buffering by default | David Robillard | 1 | -3/+3 | |
2020-03-08 | Add vsync command line options to demos | David Robillard | 1 | -2/+19 | |
2020-03-08 | Move demo programs to examples directory | David Robillard | 9 | -4950/+0 | |
These are not really tests, but examples or demos, which has caused some confusion in the past. So, move them, and make room for actual tests. | |||||
2020-03-08 | Split graphical utilities out from test_utils.h | David Robillard | 5 | -149/+174 | |
2020-03-08 | Print when unknown events are received in tests | David Robillard | 1 | -0/+3 | |
2020-03-08 | Cleanup: Fix some conversion warnings | David Robillard | 1 | -7/+7 | |
2020-03-07 | Test: Don't reuse cube vertices for background | David Robillard | 1 | -3/+10 | |
This was pretty confusing since it looked like the parent view was drawing the cube as well, and inefficient since only a single rect needs to be drawn here. | |||||
2020-03-07 | Test: Fix cube rotation via mouse | David Robillard | 1 | -2/+2 | |
2020-03-02 | Strengthen ultra-strict warnings with clang | David Robillard | 3 | -12/+15 | |
2020-03-01 | Cleanup: Adjust some code to be more clang-format friendly | David Robillard | 1 | -0/+6 | |
2020-03-01 | Cleanup: Shorten event printing code | David Robillard | 1 | -42/+63 | |
2020-03-01 | Cleanup: Fix includes | David Robillard | 1 | -0/+1 | |
2020-02-18 | Cairo Test: Preserve clip rectangle for background fill | David Robillard | 1 | -2/+1 | |
2019-12-11 | GL3 Test: Use instancing | David Robillard | 1 | -49/+62 | |
2019-12-11 | GL3 Test: Update bindings to OpenGL 3.3 | David Robillard | 2 | -8/+324 | |
2019-12-11 | GL3 Test: Spread out rectangles more | David Robillard | 1 | -7/+11 | |
2019-12-11 | GL3 Test: Calculate border color on the GPU | David Robillard | 1 | -13/+5 | |
2019-12-11 | GL3 Test: Move shaders to separate files | David Robillard | 1 | -43/+33 | |