#pragma once #include #include #include #include namespace Donut { auto vulkan_prepare_glfw() -> void; struct SceneObject { glm::vec3 position = { 0.0f, 2.0f, 0.0f }; float radius = 2.0f; glm::vec3 color = { 0.85f, 0.35f, 0.2f }; }; class VulkanRenderer { public: VulkanRenderer(); ~VulkanRenderer(); auto init(void* glfwWindow, int width, int height) -> bool; auto shutdown() -> void; auto init_im_gui() -> bool; auto draw_frame(const glm::vec4& clearColor, const std::function& buildUI = {}) -> void; auto on_resize(int width, int height) -> void; auto set_hdri(const std::string& path) -> void; auto current_hdri() const -> const std::string&; auto set_free_fly(bool enabled) -> void; auto is_free_fly() const -> bool; auto set_scene_mode(bool enabled) -> void; auto is_scene_mode() const -> bool; auto scene_objects() -> std::vector&; auto set_selected_object(int index) -> void; private: struct Impl; Impl* m_impl = nullptr; }; }