#pragma once #include struct AppConfig { const char* title = "Forts Clone"; int window_width = 1280; int window_height = 720; }; class App { public: explicit App(const AppConfig& cfg = {}); ~App(); App(const App&) = delete; App& operator=(const App&) = delete; void run(); private: void update(float dt); void render(); SDL_Window* window_ = nullptr; AppConfig config_; bool running_ = true; uint64_t last_tick_ = 0; };