Big code changes
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "device.hpp"
|
||||
#include "window.hpp"
|
||||
|
||||
namespace sophia {
|
||||
|
||||
class Engine {
|
||||
public:
|
||||
struct Config {
|
||||
int width;
|
||||
int height;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
Engine(const Engine&) = delete;
|
||||
Engine& operator=(const Engine&) = delete;
|
||||
|
||||
Engine(const Config& config);
|
||||
~Engine();
|
||||
|
||||
void run();
|
||||
|
||||
private:
|
||||
Config config;
|
||||
|
||||
Window window;
|
||||
Device device;
|
||||
|
||||
bool isRunning = true;
|
||||
};
|
||||
|
||||
} // namespace sophia
|
||||
Reference in New Issue
Block a user