diff options
author | tylermurphy534 <tylermurphy534@gmail.com> | 2022-09-18 21:20:51 -0400 |
---|---|---|
committer | tylermurphy534 <tylermurphy534@gmail.com> | 2022-09-18 21:20:51 -0400 |
commit | 8045b8ba04aae39a4cf9733e72413f648b6ebe2b (patch) | |
tree | f90a9bd50a2316d5077df99c9e8584afc76ed656 /src/first_app.hpp | |
download | minecraftvulkan-8045b8ba04aae39a4cf9733e72413f648b6ebe2b.tar.gz minecraftvulkan-8045b8ba04aae39a4cf9733e72413f648b6ebe2b.tar.bz2 minecraftvulkan-8045b8ba04aae39a4cf9733e72413f648b6ebe2b.zip |
stanford dragon rendering
Diffstat (limited to 'src/first_app.hpp')
-rwxr-xr-x | src/first_app.hpp | 36 |
1 files changed, 36 insertions, 0 deletions
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 <memory> +#include <vector> + +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<XeDescriptorPool> globalPool{}; + std::vector<XeGameObject> gameObjects; +}; +}
\ No newline at end of file |