From 87351f2a8aaaad988b44e985ac5240af43d331e3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 15 Mar 2020 18:14:19 +0100 Subject: Add type and flags to world 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. --- examples/pugl_cairo_demo.c | 2 +- examples/pugl_embed_demo.c | 2 +- examples/pugl_gl3_demo.c | 2 +- examples/pugl_print_events.c | 2 +- examples/pugl_window_demo.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'examples') diff --git a/examples/pugl_cairo_demo.c b/examples/pugl_cairo_demo.c index da59e8c..d2e57f8 100644 --- a/examples/pugl_cairo_demo.c +++ b/examples/pugl_cairo_demo.c @@ -227,7 +227,7 @@ main(int argc, char** argv) return 1; } - app.world = puglNewWorld(); + app.world = puglNewWorld(PUGL_PROGRAM, 0); puglSetClassName(app.world, "PuglCairoTest"); PuglRect frame = { 0, 0, 512, 512 }; diff --git a/examples/pugl_embed_demo.c b/examples/pugl_embed_demo.c index dc80b18..6bafae5 100644 --- a/examples/pugl_embed_demo.c +++ b/examples/pugl_embed_demo.c @@ -262,7 +262,7 @@ main(int argc, char** argv) app.continuous = opts.continuous; app.verbose = opts.verbose; - app.world = puglNewWorld(); + app.world = puglNewWorld(PUGL_PROGRAM, 0); app.parent = puglNewView(app.world); app.child = puglNewView(app.world); diff --git a/examples/pugl_gl3_demo.c b/examples/pugl_gl3_demo.c index ec36d16..e0c63ca 100644 --- a/examples/pugl_gl3_demo.c +++ b/examples/pugl_gl3_demo.c @@ -260,7 +260,7 @@ static void setupPugl(PuglTestApp* app, const PuglRect frame) { // Create world, view, and rect data - app->world = puglNewWorld(); + app->world = puglNewWorld(PUGL_PROGRAM, 0); app->view = puglNewView(app->world); app->rects = makeRects(app->numRects); diff --git a/examples/pugl_print_events.c b/examples/pugl_print_events.c index 5d2785e..c662117 100644 --- a/examples/pugl_print_events.c +++ b/examples/pugl_print_events.c @@ -53,7 +53,7 @@ main(void) { PuglPrintEventsApp app = {NULL, NULL, 0}; - app.world = puglNewWorld(); + app.world = puglNewWorld(PUGL_PROGRAM, 0); app.view = puglNewView(app.world); puglSetClassName(app.world, "Pugl Print Events"); diff --git a/examples/pugl_window_demo.c b/examples/pugl_window_demo.c index 18def43..394b959 100644 --- a/examples/pugl_window_demo.c +++ b/examples/pugl_window_demo.c @@ -181,7 +181,7 @@ main(int argc, char** argv) app.continuous = opts.continuous; app.verbose = opts.verbose; - app.world = puglNewWorld(); + app.world = puglNewWorld(PUGL_PROGRAM, 0); app.cubes[0].view = puglNewView(app.world); app.cubes[1].view = puglNewView(app.world); -- cgit v1.2.1