26 lines
497 B
C++
26 lines
497 B
C++
#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, config.headless}} {}
|
|
|
|
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
|