This commit is contained in:
2025-07-12 02:12:46 +01:00
parent 233cfdc356
commit ce44dfc950
10 changed files with 421 additions and 170 deletions

22
include/window.hpp Normal file
View File

@@ -0,0 +1,22 @@
#ifndef WINDOW_HPP
#define WINDOW_HPP
// Includes
#include "iostream"
#include <SDL3/SDL.h>
// Constants
const int window_width = 800;
const int window_height = 600;
// Variables
const SDL_WindowFlags window_flags = SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_HIDDEN | SDL_WINDOW_HIGH_PIXEL_DENSITY;
extern float main_scale;
extern SDL_Window* window;
extern SDL_Event event;
// Functions
int initialize_sdl();
void cleanup_sdl();
#endif