aboutsummaryrefslogtreecommitdiff
path: root/examples
AgeCommit message (Collapse)Author
2020-10-14Fix cursor persisting into titlebar (Windows)HEADmasterJordan Halase
2020-10-14Fix missing default size in pugl_print_eventsJordan Halase
2020-10-14Explicitly declare all special methodsDavid Robillard
2020-10-04Move cube vertex data to the file where it is actually usedDavid Robillard
2020-10-04Use refresh rate to better drive example event loopDavid Robillard
2020-10-04Print all view hints in shader demo and hint testsDavid Robillard
2020-10-03Change FPS print format in demos for consistency with other outputDavid Robillard
2020-07-05Improve struct packingDavid Robillard
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-06-13Add puglSetCursor()Jean Pierre Cimalando
2020-06-13Cleanup: Fix implicit conversion warnings with clangDavid Robillard
2020-06-13Cleanup: Fix uninitialised variablesDavid Robillard
2020-06-08Windows: Fix maximum sizeDavid Robillard
2020-05-16Add default and maximum sizeDavid Robillard
2020-05-16Use line comments where appropriateDavid Robillard
2020-05-16Use email address in copyright headersDavid Robillard
Not really sure why I used a web link here (maybe because it's more stable), but this is more conventional.
2020-05-16Fix file documentationDavid Robillard
2020-04-22C++ Demo: Fix sync optionDavid Robillard
2020-04-22C++ Demo: Fix help optionDavid Robillard
2020-04-06Implement puglSetTransientFor() for Mac and WindowsDavid Robillard
2020-04-04Shader Demo: Support both GL 3 and 4David Robillard
2020-04-04Shader Demo: Use a UBODavid Robillard
2020-04-04Shader Demo: Factor out version-dependent GLSL headerDavid Robillard
2020-04-04Shader Demo: Factor out animated rectangle definitionsDavid Robillard
2020-04-04Shader Demo: Explicitly set up alpha blendingDavid Robillard
2020-04-03Rewrite C++ bindingsDavid Robillard
2020-04-02Strengthen warningsDavid Robillard
2020-04-01Cleanup: Fix mismatched file commentsDavid Robillard
2020-04-01Replace puglShowWindow() with puglRealize()David Robillard
2020-03-31GL3 Demo: Fix conversion warningsDavid Robillard
2020-03-17Use clearer names for pointer eventsDavid Robillard
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-16Embed Demo: Add timer to occasionally reverse spin directionDavid Robillard
2020-03-16Window Demo: Only redisplay on update when running continuouslyDavid Robillard
2020-03-15Unify event loop functions as puglUpdate()David Robillard
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-15Add type and flags to worldDavid Robillard
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-15Print events in Cairo demoDavid Robillard
2020-03-15Remove static data from Cairo demoDavid Robillard
2020-03-13Strengthen warningsDavid Robillard
2020-03-09GL3 Demo: Set up and tear down GL on PUGL_CREATE and PUGL_DESTROYDavid Robillard
This eliminates the use of puglEnterContext().
2020-03-09GL3 Demo: Factor out GL setup and teardownDavid Robillard
2020-03-09Window Demo: Fix updating when not runnning continuouslyDavid Robillard
2020-03-09Cleanup: Remove unnecessary includesDavid Robillard
Apparently glxext.h is always included in glx.h on modern systems. The window demo does not actually use any GL functions directly since they are all factored out.
2020-03-08Add vsync command line options to demosDavid Robillard
2020-03-08Embed Demo: Simplify FPS counterDavid Robillard
What we're really interested in here is how often the main loop iteration runs.
2020-03-08Embed Demo: Only redisplay on input when not running continuouslyDavid Robillard
2020-03-08Add multiple window exampleDavid Robillard
2020-03-08Factor out cube drawingDavid Robillard
2020-03-08Move demo programs to examples directoryDavid Robillard
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.