Big code changes

This commit is contained in:
2026-08-23 20:46:09 -07:00
parent 7243e13df5
commit 0cb0628101
25 changed files with 1645 additions and 227 deletions
+25
View File
@@ -0,0 +1,25 @@
#include <sophia/application.hpp>
#include "engine.hpp"
namespace sophia {
class Application::Impl {
public:
Impl(const Application::Config& config)
: engine{{config.width, config.height, config.name}} {}
void run() { engine.run(); }
private:
Engine engine;
};
Application::Application(const Config& config)
: impl{std::make_unique<Impl>(config)} {}
Application::~Application() = default;
void Application::run() { impl->run(); }
} // namespace sophia