diff options
Diffstat (limited to 'src/rendering/renderer_backend.h')
| -rw-r--r-- | src/rendering/renderer_backend.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/rendering/renderer_backend.h b/src/rendering/renderer_backend.h index 51da214..d64a46b 100644 --- a/src/rendering/renderer_backend.h +++ b/src/rendering/renderer_backend.h @@ -1,9 +1,6 @@ #pragma once #include <glm/glm.hpp> -#include <functional> -#include <string> -#include <vector> namespace Donut { @@ -24,33 +21,4 @@ namespace Donut int quality_steps = 15000; float fov_degrees = 60.0f; }; - - class RendererBackend - { - public: - virtual ~RendererBackend() = default; - - virtual auto init(void* glfwWindow, int width, int height) -> bool = 0; - - virtual auto init_ui() -> bool = 0; - virtual auto shutdown() -> void = 0; - virtual auto resize(int width, int height) -> void = 0; - - virtual auto draw_frame(const glm::vec4& clear_color, - const std::function<void()>& build_ui) -> void = 0; - - virtual auto set_scene_mode(bool enabled) -> void = 0; - virtual auto is_scene_mode() const -> bool = 0; - virtual auto set_free_fly(bool enabled) -> void = 0; - virtual auto is_free_fly() const -> bool = 0; - virtual auto reset_camera() -> void = 0; - - virtual auto set_hdri(const std::string& path) -> void = 0; - virtual auto current_hdri() const -> const std::string& = 0; - virtual auto scene_objects() -> std::vector<SceneObject>& = 0; - virtual auto set_selected_object(int index) -> void = 0; - virtual auto black_hole_params() -> BlackHoleParams& = 0; - - virtual auto device_name() const -> const std::string& = 0; - }; } |
