Initial commit.
This commit is contained in:
33
src/VkExpe.h
Normal file
33
src/VkExpe.h
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user