From 8754e31367f6fcfcda4bf50d373797a048dedf53 Mon Sep 17 00:00:00 2001 From: tylermurphy534 Date: Mon, 19 Sep 2022 07:08:42 -0400 Subject: start refactoring, doesnt compile --- engine/xe_engine.hpp | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 engine/xe_engine.hpp (limited to 'engine/xe_engine.hpp') diff --git a/engine/xe_engine.hpp b/engine/xe_engine.hpp new file mode 100644 index 0000000..93d3f8b --- /dev/null +++ b/engine/xe_engine.hpp @@ -0,0 +1,40 @@ +#pragma once + +#include "xe_window.hpp" +#include "xe_device.hpp" +#include "xe_renderer.hpp" + +namespace xe { + +class XeEngine { + + public: + + XeEngine(int width, int height, std::string name); + ~XeEngine() {}; + + XeEngine(const XeEngine&) = delete; + XeEngine operator=(const XeEngine&) = delete; + + const XeWindow& getWindow() const { + return xeWindow; + }; + + const XeRenderer& getRenderer() const { + return xeRenderer; + }; + + + private: + + void loadDescriptorPool(); + + XeWindow xeWindow; + XeDevice xeDevice; + XeRenderer xeRenderer; + + std::unique_ptr xeDescriptorPool{}; + std::unique_ptr xeDescriptorSetLayout; +}; + +} \ No newline at end of file -- cgit v1.2.3-freya