diff options
Diffstat (limited to 'src/platform/vulkan/vulkan_renderer.h')
| -rw-r--r-- | src/platform/vulkan/vulkan_renderer.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/platform/vulkan/vulkan_renderer.h b/src/platform/vulkan/vulkan_renderer.h new file mode 100644 index 0000000..0bf2395 --- /dev/null +++ b/src/platform/vulkan/vulkan_renderer.h @@ -0,0 +1,29 @@ +#pragma once + +#include <glm/glm.hpp> +#include <functional> + +namespace Donut +{ + void vulkan_prepare_glfw(); + + class VulkanRenderer + { + public: + VulkanRenderer(); + ~VulkanRenderer(); + + bool init(void* glfwWindow, int width, int height); + void shutdown(); + + bool init_im_gui(); + + void draw_frame(const glm::vec4& clear_color, const std::function<void()>& build_ui = {}); + + void on_resize(int width, int height); + + private: + struct Impl; + Impl* m_impl = nullptr; + }; +} |
