aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/pugl_cairo_demo.c2
-rw-r--r--examples/pugl_cursor_demo.c2
-rw-r--r--examples/pugl_cxx_demo.cpp2
-rw-r--r--examples/pugl_embed_demo.c4
-rw-r--r--examples/pugl_print_events.c2
-rw-r--r--examples/pugl_shader_demo.c2
-rw-r--r--examples/pugl_vulkan_cxx_demo.cpp2
-rw-r--r--examples/pugl_vulkan_demo.c4
-rw-r--r--examples/pugl_window_demo.c2
9 files changed, 11 insertions, 11 deletions
diff --git a/examples/pugl_cairo_demo.c b/examples/pugl_cairo_demo.c
index d8a1b08..c143c3c 100644
--- a/examples/pugl_cairo_demo.c
+++ b/examples/pugl_cairo_demo.c
@@ -252,7 +252,7 @@ main(int argc, char** argv)
return logError("Failed to create window (%s)\n", puglStrerror(st));
}
- puglShowWindow(view);
+ puglShow(view);
PuglFpsPrinter fpsPrinter = { puglGetTime(app.world) };
const double timeout = app.opts.continuous ? (1 / 60.0) : -1.0;
diff --git a/examples/pugl_cursor_demo.c b/examples/pugl_cursor_demo.c
index de6b6f2..916460a 100644
--- a/examples/pugl_cursor_demo.c
+++ b/examples/pugl_cursor_demo.c
@@ -160,7 +160,7 @@ main(int argc, char** argv)
return logError("Failed to create window (%s)\n", puglStrerror(st));
}
- puglShowWindow(view);
+ puglShow(view);
while (!app.quit) {
puglUpdate(app.world, -1.0);
diff --git a/examples/pugl_cxx_demo.cpp b/examples/pugl_cxx_demo.cpp
index 9767345..482f67f 100644
--- a/examples/pugl_cxx_demo.cpp
+++ b/examples/pugl_cxx_demo.cpp
@@ -134,7 +134,7 @@ main(int argc, char** argv)
view.setHint(pugl::ViewHint::swapInterval, opts.sync);
view.setHint(pugl::ViewHint::ignoreKeyRepeat, opts.ignoreKeyRepeat);
view.realize();
- view.showWindow();
+ view.show();
unsigned framesDrawn = 0;
while (!view.quit()) {
diff --git a/examples/pugl_embed_demo.c b/examples/pugl_embed_demo.c
index db4a141..5acef73 100644
--- a/examples/pugl_embed_demo.c
+++ b/examples/pugl_embed_demo.c
@@ -335,8 +335,8 @@ main(int argc, char** argv)
puglStrerror(st));
}
- puglShowWindow(app.parent);
- puglShowWindow(app.child);
+ puglShow(app.parent);
+ puglShow(app.child);
puglStartTimer(app.child, reverseTimerId, 3.6);
diff --git a/examples/pugl_print_events.c b/examples/pugl_print_events.c
index 816086d..3f6bb06 100644
--- a/examples/pugl_print_events.c
+++ b/examples/pugl_print_events.c
@@ -69,7 +69,7 @@ main(void)
return logError("Failed to create window (%s)\n", puglStrerror(st));
}
- puglShowWindow(app.view);
+ puglShow(app.view);
while (!app.quit) {
puglUpdate(app.world, -1.0);
diff --git a/examples/pugl_shader_demo.c b/examples/pugl_shader_demo.c
index 476489d..3f5e7f3 100644
--- a/examples/pugl_shader_demo.c
+++ b/examples/pugl_shader_demo.c
@@ -426,7 +426,7 @@ main(int argc, char** argv)
// Show window
printViewHints(app.view);
- puglShowWindow(app.view);
+ puglShow(app.view);
// Calculate ideal frame duration to drive the main loop at a good rate
const int refreshRate = puglGetViewHint(app.view, PUGL_REFRESH_RATE);
diff --git a/examples/pugl_vulkan_cxx_demo.cpp b/examples/pugl_vulkan_cxx_demo.cpp
index 6da5e5a..b4e04ef 100644
--- a/examples/pugl_vulkan_cxx_demo.cpp
+++ b/examples/pugl_vulkan_cxx_demo.cpp
@@ -1804,7 +1804,7 @@ run(const PuglTestOptions opts, const size_t numRects)
const double timeout = app.opts.sync ? frameDuration : 0.0;
PuglFpsPrinter fpsPrinter = {app.world.time()};
- app.view.showWindow();
+ app.view.show();
while (!app.quit) {
app.world.update(timeout);
puglPrintFps(app.world.cobj(), &fpsPrinter, &app.framesDrawn);
diff --git a/examples/pugl_vulkan_demo.c b/examples/pugl_vulkan_demo.c
index 3f684fe..c609d10 100644
--- a/examples/pugl_vulkan_demo.c
+++ b/examples/pugl_vulkan_demo.c
@@ -893,7 +893,7 @@ destroyWorld(VulkanApp* const app)
closeDevice(vk);
if (app->view) {
- puglHideWindow(app->view);
+ puglHide(app->view);
puglFreeView(app->view);
app->view = NULL;
}
@@ -1123,7 +1123,7 @@ main(int argc, char** argv)
printf("Swapchain images: %u\n", app.vk.swapchain->nImages);
PuglFpsPrinter fpsPrinter = {puglGetTime(app.world)};
- puglShowWindow(app.view);
+ puglShow(app.view);
while (!app.quit) {
puglUpdate(app.world, -1.0);
diff --git a/examples/pugl_window_demo.c b/examples/pugl_window_demo.c
index 9b7795c..080d23b 100644
--- a/examples/pugl_window_demo.c
+++ b/examples/pugl_window_demo.c
@@ -236,7 +236,7 @@ main(int argc, char** argv)
return logError("Failed to create window (%s)\n", puglStrerror(st));
}
- puglShowWindow(view);
+ puglShow(view);
}
PuglFpsPrinter fpsPrinter = {puglGetTime(app.world)};