Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-03-01 | Cleanup: Adjust some code to be more clang-format friendly | David Robillard | |
2020-03-01 | Cleanup: Shorten event printing code | David Robillard | |
2020-03-01 | Cleanup: Fix includes | David Robillard | |
2020-02-18 | Cairo Test: Preserve clip rectangle for background fill | David Robillard | |
2019-12-11 | GL3 Test: Use instancing | David Robillard | |
2019-12-11 | GL3 Test: Update bindings to OpenGL 3.3 | David Robillard | |
2019-12-11 | GL3 Test: Spread out rectangles more | David Robillard | |
2019-12-11 | GL3 Test: Calculate border color on the GPU | David Robillard | |
2019-12-11 | GL3 Test: Move shaders to separate files | David Robillard | |
2019-12-09 | Fix use of incorrect union element | David Robillard | |
2019-11-21 | Rename "backend" headers | David Robillard | |
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 | |
2019-11-18 | Add test utility function for logging errors | David Robillard | |
2019-11-18 | Add error checking option to test programs | David Robillard | |
2019-11-09 | Fix various clang-tidy warnings | David Robillard | |
2019-11-09 | Make pugl_gl3_test deterministic | David Robillard | |
2019-11-09 | Add puglStrerror() and improve test program error reporting | David Robillard | |
2019-11-03 | Remove redisplay flag and add puglPostRedisplayRect() | David Robillard | |
2019-11-03 | Add pugl_print_events test program | David Robillard | |
2019-11-03 | Add verbose option to test programs to print all events | David Robillard | |
2019-11-03 | Fix duplicate word in error message | David Robillard | |
2019-10-21 | Don't use compatible profile in pugl_gl3_test | David Robillard | |
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 | |
2019-09-07 | Add OpenGL 3 test program | David Robillard | |
2019-09-03 | Make event handler return a status | David Robillard | |
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 | |
2019-09-03 | Rename remaining init functions | David Robillard | |
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 | |
2019-09-03 | Replace size and aspect ratio init functions with dynamic ones | David Robillard | |
2019-09-03 | Add swap interval hint | David Robillard | |
2019-09-03 | Make pugl_test use a nested view and test focus and movement | David Robillard | |
2019-09-03 | Add functions to get and set view size and position | David Robillard | |
2019-09-03 | Add puglDispatchEvents() | David Robillard | |
2019-09-03 | Add puglPollEvents() | David Robillard | |
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 | |
2019-09-03 | Add PuglWorld | David Robillard | |
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 | |
2019-08-02 | Test: Remove use of static data | David Robillard | |
Not very becoming of a library that exists specifically to avoid static data. | |||
2019-08-02 | Replace puglIgnoreKeyRepeat() with a hint | David Robillard | |
2019-08-02 | Test: Remove locale hacks | David Robillard | |
2019-08-02 | Test: Configure GL in configure handler instead of main | David Robillard | |
2019-08-02 | Test: Factor out FPS printer | David Robillard | |
2019-08-01 | Add missing string termination | David Robillard | |
2019-07-31 | X11: Support UTF8 in window titles | JP Cimalando | |
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 | |
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 | |
2019-07-29 | Completely separate backends from platform implementation | David Robillard | |
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 | |
2019-07-28 | Make enterContext take a drawing parameter like leaveContext | David Robillard | |
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 | |