summaryrefslogtreecommitdiff
path: root/examples/particles.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/particles.c')
-rw-r--r--examples/particles.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/particles.c b/examples/particles.c
index 894fee0..753698d 100644
--- a/examples/particles.c
+++ b/examples/particles.c
@@ -22,9 +22,9 @@ vec4_f32 background = { .0f, .0f, .08f, 1.f };
i64 time_0;
void update_and_render_frame(void) {
- p_handle_events();
+ handle_main_window_events();
- i64 time_elapsed = p_time() - time_0;
+ i64 time_elapsed = current_utc_time_in_milliseconds() - time_0;
time_0 += time_elapsed;
if (g_platform.key_pressed[BUTTON_LEFT]) {
@@ -109,7 +109,7 @@ void update_and_render_frame(void) {
}
}
- p_render_frame();
+ render_main_window_frame();
}
i32 main(i32 argc, c8 **argv) {
@@ -122,11 +122,11 @@ i32 main(i32 argc, c8 **argv) {
.exact_resolution = 1,
};
- time_0 = p_time();
+ time_0 = current_utc_time_in_milliseconds();
- srand(p_time());
+ srand(time_0);
- p_event_loop();
+ run_main_window_event_loop();
return 0;
}