This commit is contained in:
2026-03-10 16:04:39 +01:00
commit 9965f381ab
8 changed files with 650 additions and 0 deletions

23
include/window/window.hpp Normal file
View File

@@ -0,0 +1,23 @@
#pragma once
#include <string>
#include <SDL2/SDL.h>
#include <iostream>
#include <utils.hpp>
namespace Game::Window {
class Window {
public:
Window();
DISABLE_COPY_AND_MOVE(Window)
~Window();
bool init(int width, int height, const std::string& title);
void run();
private:
SDL_Window *mWindow;
bool mRunning;
};
}