aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pugl_embed_demo.c
AgeCommit message (Collapse)AuthorFilesLines
2020-03-15Unify event loop functions as puglUpdate()David Robillard1-9/+12
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 Robillard1-1/+1
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-13Strengthen warningsDavid Robillard1-2/+0
2020-03-08Add vsync command line options to demosDavid Robillard1-2/+2
2020-03-08Embed Demo: Simplify FPS counterDavid Robillard1-3/+3
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 Robillard1-5/+11
2020-03-08Factor out cube drawingDavid Robillard1-59/+6
2020-03-08Move demo programs to examples directoryDavid Robillard1-0/+394
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.