Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
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 | |
2019-12-09 | Fix use of incorrect union element | David Robillard | 1 | -4/+4 | |
2019-11-21 | Rename "backend" headers | David Robillard | 4 | -4/+4 | |
Working on Vulkan clarified what has always been slightly smelly about the design and organization here: not everything that is API specific is really in a "backend" (a PuglBackend). The concrete example is puglGetProcAddress(), which only makes sense for GL and is actually implemented in the "backend" files. Arguably puglGetContext() is also such a thing. So, rename the headers so they can be the place where API-specific things go in general, which happens to include a backend most of the time. The stub is a bit of an exception to this, but whatever. The includes look tidier this way. In place of the old headers are compatibility stubs that just emit a warning and include the new version, which will be maintained for a while. | |||||
2019-11-18 | Cleanup: Remove unnecessary includes | David Robillard | 3 | -5/+0 | |
2019-11-18 | Add test utility function for logging errors | David Robillard | 5 | -16/+23 | |
2019-11-18 | Add error checking option to test programs | David Robillard | 3 | -1/+8 | |
2019-11-09 | Fix various clang-tidy warnings | David Robillard | 1 | -1/+3 | |
2019-11-09 | Make pugl_gl3_test deterministic | David Robillard | 1 | -16/+15 | |
2019-11-09 | Add puglStrerror() and improve test program error reporting | David Robillard | 3 | -8/+15 | |
2019-11-03 | Remove redisplay flag and add puglPostRedisplayRect() | David Robillard | 1 | -5/+28 | |
2019-11-03 | Add pugl_print_events test program | David Robillard | 1 | -0/+83 | |
2019-11-03 | Add verbose option to test programs to print all events | David Robillard | 3 | -13/+49 | |
2019-11-03 | Fix duplicate word in error message | David Robillard | 1 | -1/+1 | |
2019-10-21 | Don't use compatible profile in pugl_gl3_test | David Robillard | 1 | -1/+1 | |
It turns out that there are some systems where having this on makes things not work, because compatible profiles are only supported up to earlier versions, despite a much higher version being available. | |||||
2019-09-07 | Add clipboard support | David Robillard | 1 | -3/+11 | |
2019-09-07 | Add OpenGL 3 test program | David Robillard | 6 | -0/+3791 | |
2019-09-03 | Make event handler return a status | David Robillard | 2 | -3/+9 | |
Currently unused, but this is to leave open the possibility of event propagation or better errror handling. | |||||
2019-09-03 | Factor out parsing test options | David Robillard | 3 | -60/+82 | |
2019-09-03 | Rename remaining init functions | David Robillard | 2 | -15/+15 | |
This finishes the removal of the init/set split. While these ones are superficial, the general idea here is to provide general functions that work before or after window creation where possible. This prevents the situation where ever more dynamic counterparts to existing init functions get added over time. | |||||
2019-09-03 | Add puglSetClassName() | David Robillard | 2 | -3/+3 | |
2019-09-03 | Replace size and aspect ratio init functions with dynamic ones | David Robillard | 2 | -3/+3 | |
2019-09-03 | Add swap interval hint | David Robillard | 1 | -0/+2 | |
2019-09-03 | Make pugl_test use a nested view and test focus and movement | David Robillard | 3 | -83/+228 | |
2019-09-03 | Add functions to get and set view size and position | David Robillard | 2 | -6/+11 | |
2019-09-03 | Add puglDispatchEvents() | David Robillard | 2 | -2/+2 | |
2019-09-03 | Add puglPollEvents() | David Robillard | 2 | -2/+2 | |
This allows waiting for events for any view in the world. It also improves on puglWaitForEvent() by the addition of a time parameter that allows indefinite blocking, non-blocking polling, and blocking polling with a timeout. | |||||
2019-09-03 | Move puglGetTime() to PuglWorld | David Robillard | 3 | -13/+16 | |
2019-09-03 | Add PuglWorld | David Robillard | 2 | -14/+21 | |
The old API was broken for programs that manage multiple views, since it was impossible to wait for events on any view. There are also several functions in the API which are not actually associated with views at all, so those can now be moved to the more appropriate PuglWorld to make this more clear. The old puglInit() and puglDestroy() functions are preserved for compatibility, but marked as deprecated. | |||||
2019-08-02 | Clean up includes | David Robillard | 1 | -0/+1 | |
2019-08-02 | Test: Remove use of static data | David Robillard | 1 | -39/+48 | |
Not very becoming of a library that exists specifically to avoid static data. | |||||
2019-08-02 | Replace puglIgnoreKeyRepeat() with a hint | David Robillard | 2 | -2/+2 | |
2019-08-02 | Test: Remove locale hacks | David Robillard | 1 | -3/+0 | |
2019-08-02 | Test: Configure GL in configure handler instead of main | David Robillard | 1 | -6/+4 | |
2019-08-02 | Test: Factor out FPS printer | David Robillard | 3 | -24/+35 | |
2019-08-01 | Add missing string termination | David Robillard | 1 | -1/+1 | |
2019-07-31 | X11: Support UTF8 in window titles | JP Cimalando | 1 | -1/+3 | |
It's possible that this does bad things if a UTF8 string is used on a system that does not support it (because XStoreName is still called), but I have no idea how likely this scenario is. Leaving it this way because it means the ASCII case will still work everywhere, and it's easy enough to avoid if this is a problem. | |||||
2019-07-29 | Add animation to Cairo test program | David Robillard | 1 | -23/+60 | |
Mainly to be able to test backends, this is still a silly program. | |||||
2019-07-29 | Cleanup: Clean up includes and call IWYU in lint target | David Robillard | 2 | -1/+2 | |
2019-07-29 | Completely separate backends from platform implementation | David Robillard | 2 | -1/+4 | |
This removes PuglContextType and allows the user to pass a backend directly. Normally this would come from one of the two accessors declared in the headers, but it would be possible to add backends without changing any of the existing code at all. Unfortunately, it is not possible to preserve backwards compatibility and achieve the ultimate goal of linking only to the required dependencies, so puglInitContextType() has just been removed. | |||||
2019-07-29 | Add deprecation macro and deprecate puglInitResizable() | David Robillard | 2 | -2/+2 | |
2019-07-28 | Make enterContext take a drawing parameter like leaveContext | David Robillard | 1 | -1/+1 | |
These need to be symmetric because sometimes different things need to happen in either situation when entering the context as well. | |||||
2019-07-28 | Fix unused parameter warnings and prevent rot | David Robillard | 1 | -0/+2 | |
2019-07-28 | Fix building pugl_cairo_test as C++ | David Robillard | 1 | -1/+1 | |
2019-07-26 | Windows: Implement size constraints | David Robillard | 1 | -1/+1 | |
There are two possible approaches to take here: try to expand dimensions that are not being explicitly resized (for example expand the bottom when dragging right), or just stop single-dimension resizes if they would go out of range. I chose the latter here for two reasons: it's hard to always do something smooth and unsurprising with the first approach (and it would require more code), and it can be nice from the user's perspective to easily be able to resize the window to exactly one of its aspect ratio limits. For example, it is very easy to drag pugl_test to 1:1 or 16:9. In other words, simplicity and user power wins. |