wip demo mode and base tempo

This commit is contained in:
2025-09-20 16:47:52 +02:00
parent ff5d64d500
commit 884f236e7e
9 changed files with 89 additions and 49 deletions
+3 -7
View File
@@ -121,14 +121,10 @@ void window_refresh(Window *window) {
glfwPollEvents();
}
Context window_get_context(Window *window) {
Context context;
void window_get_context(Window *window, Context *context) {
glfwGetFramebufferSize(window, &context->width, &context->height);
glfwGetFramebufferSize(window, &context.width, &context.height);
context.time = glfwGetTime();
return context;
context->time = glfwGetTime();
}
void window_close(Window *window, bool hard) {