Initial commit.

This commit is contained in:
2021-12-20 22:32:59 +01:00
commit ed35935f7e
14 changed files with 1437 additions and 0 deletions

33
src/VkExpe.h Normal file
View File

@@ -0,0 +1,33 @@
#pragma once
#include "VulkanTutorial.h"
#include <SDL2/SDL.h>
#include <memory>
struct SdlWindowDeleter {
void operator()(SDL_Window* window) const;
};
using WindowUP = std::unique_ptr<SDL_Window, SdlWindowDeleter>;
class VkExpe {
public:
VkExpe(int argc, char** argv);
VkExpe(const VkExpe&) = delete;
~VkExpe();
VkExpe& operator=(const VkExpe&) = delete;
void initialize();
void shutdown();
void run();
private:
VulkanTutorial m_vulkan;
WindowUP m_window;
bool m_running = false;
};