From 8045b8ba04aae39a4cf9733e72413f648b6ebe2b Mon Sep 17 00:00:00 2001 From: tylermurphy534 Date: Sun, 18 Sep 2022 21:20:51 -0400 Subject: stanford dragon rendering --- src/first_app.hpp | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 src/first_app.hpp (limited to 'src/first_app.hpp') diff --git a/src/first_app.hpp b/src/first_app.hpp new file mode 100755 index 0000000..bcdf33e --- /dev/null +++ b/src/first_app.hpp @@ -0,0 +1,36 @@ +#pragma once + +#include "xe_renderer.hpp" +#include "xe_window.hpp" +#include "xe_device.hpp" +#include "xe_game_object.hpp" +#include "xe_descriptors.hpp" + +#include +#include + +namespace xe { +class FirstApp { + public: + static constexpr int WIDTH = 800; + static constexpr int HEIGHT = 600; + + FirstApp(); + ~FirstApp(); + + FirstApp(const FirstApp &) = delete; + FirstApp operator=(const FirstApp &) = delete; + + void run(); + + private: + void loadGameObjects(); + + XeWindow xeWindow{WIDTH, HEIGHT, "Hello Vulkan!"}; + XeDevice xeDevice{xeWindow}; + XeRenderer xeRenderer{xeWindow, xeDevice}; + + std::unique_ptr globalPool{}; + std::vector gameObjects; +}; +} \ No newline at end of file -- cgit v1.2.3-freya