fps in window title

This commit is contained in:
2025-09-14 13:15:40 +02:00
parent 43787715b5
commit 5b26def204
9 changed files with 102 additions and 27 deletions
+10 -5
View File
@@ -1,10 +1,9 @@
#include <stdbool.h>
#include <time.h>
#include <GLFW/glfw3.h>
#include <glad/gl.h>
#include <linmath.h>
#include <GLFW/glfw3.h>
#include <stdbool.h>
#include <sys/time.h>
#include <time.h>
#ifndef TYPES_H
#define TYPES_H
@@ -51,4 +50,10 @@ typedef struct Context {
double time;
} Context;
typedef struct Timer {
struct timeval start;
unsigned int counter;
unsigned int target;
} Timer;
#endif