resizing and closing

This commit is contained in:
Rakarake 2025-12-25 13:43:19 +01:00
parent 09ac1a0559
commit 7e2171681d
3 changed files with 30 additions and 5 deletions

View file

@ -12,8 +12,6 @@
struct timespec program_start;
int running = 1;
void init_timer() {
clock_gettime(CLOCK_MONOTONIC, &program_start);
}
@ -40,7 +38,7 @@ int main(int argc, char *argv[]) {
Renderer renderer = new_renderer();
while (running) {
while (state.running) {
double time = time_since_start();
render(&renderer, state.width, state.height, time, shader_path, 0);
commit(&state);