Big changes
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "device.hpp"
|
||||
@@ -13,6 +14,7 @@ class Engine {
|
||||
int width;
|
||||
int height;
|
||||
std::string name;
|
||||
bool headless = false;
|
||||
};
|
||||
|
||||
Engine(const Engine&) = delete;
|
||||
@@ -26,8 +28,8 @@ class Engine {
|
||||
private:
|
||||
Config config;
|
||||
|
||||
Window window;
|
||||
Device device;
|
||||
std::unique_ptr<Window> window;
|
||||
std::unique_ptr<Device> device;
|
||||
|
||||
bool isRunning = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user