blob: 81e84869619930639371a6c838e9de73c08fc622 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#pragma once
#include "rendering/renderer_backend.h"
namespace Donut
{
auto vulkan_prepare_glfw() -> void;
class VulkanRenderer : public RendererBackend
{
public:
VulkanRenderer();
~VulkanRenderer() override;
auto init(void* glfwWindow, int width, int height) -> bool override;
auto init_ui() -> bool override;
auto shutdown() -> void override;
auto resize(int width, int height) -> void override;
auto draw_frame(const glm::vec4& clear_color,
const std::function<void()>& build_ui) -> void override;
auto set_scene_mode(bool enabled) -> void override;
auto is_scene_mode() const -> bool override;
auto set_free_fly(bool enabled) -> void override;
auto is_free_fly() const -> bool override;
auto reset_camera() -> void override;
auto set_hdri(const std::string& path) -> void override;
auto current_hdri() const -> const std::string& override;
auto scene_objects() -> std::vector<SceneObject>& override;
auto set_selected_object(int index) -> void override;
auto black_hole_params() -> BlackHoleParams& override;
auto device_name() const -> const std::string& override;
private:
struct Impl;
Impl* m_impl = nullptr;
};
}
|