Files
sophia/engine/src/engine.hpp
T
2026-08-26 03:18:05 -07:00

38 lines
534 B
C++

#pragma once
#include <memory>
#include <string>
#include "device.hpp"
#include "window.hpp"
namespace sophia {
class Engine {
public:
struct Config {
int width;
int height;
std::string name;
bool headless = false;
};
Engine(const Engine&) = delete;
Engine& operator=(const Engine&) = delete;
Engine(const Config& config);
~Engine();
void run();
private:
Config config;
std::unique_ptr<Window> window;
std::unique_ptr<Device> device;
bool isRunning = true;
};
} // namespace sophia