Various changes

- add release build
- control framerate
- fix bug that caused camera to shake
- enable double-buffering and VSync
This commit is contained in:
var
2026-04-26 22:15:58 -05:00
parent 58289aa6b2
commit 839a9dd5c2
5 changed files with 35 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include "SDL2/SDL.h"
#include "cglm/cglm.h"
#include "camera.h"
@@ -20,6 +21,7 @@ typedef struct
typedef struct
{
bool running;
uint64_t previousTicks;
InputState input;
SDL_Window *window;
SDL_GLContext *glContext;