hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/rendering/renderer.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2025-08-13 18:39:13 +0200
committerhachem <im@hachem.wtf>2025-08-13 18:39:13 +0200
commit23086a5d33acc66414f1169bf22abe78b3383f94 (patch)
treea895c3e3ab8074118a84aada97ea990b60fba556 /src/rendering/renderer.h
parent2d8f706efe6e0a02b3238c2f22e7cdce620e9807 (diff)
fix: more consistent formatting
Diffstat (limited to 'src/rendering/renderer.h')
-rw-r--r--src/rendering/renderer.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/rendering/renderer.h b/src/rendering/renderer.h
index 7bbdd4b..c7ace3c 100644
--- a/src/rendering/renderer.h
+++ b/src/rendering/renderer.h
@@ -21,26 +21,26 @@ namespace Donut
public:
enum class API
{
- None = 0,
+ None = 0,
OpenGL = 1,
Vulkan = 2,
};
-
public:
virtual ~RendererAPI() = default;
- virtual void init() = 0;
- virtual void set_viewport(uint32_t x, uint32_t y, uint32_t width, uint32_t height) = 0;
- virtual void set_clear_color(const glm::vec4& color) = 0;
- virtual void clear() = 0;
- virtual void enable_depth_test() = 0;
- virtual void set_face_culling(bool enabled) = 0;
+ virtual void init() = 0;
+ virtual void set_viewport(uint32_t x, uint32_t y,
+ uint32_t width, uint32_t height) = 0;
+ virtual void set_clear_color(const glm::vec4& color) = 0;
+ virtual void clear() = 0;
+ virtual void enable_depth_test() = 0;
+ virtual void set_face_culling(bool enabled) = 0;
- virtual void draw_indexed(const std::shared_ptr<VertexArray>& vertex_array, uint32_t index_count = 0) = 0;
+ virtual void draw_indexed(const std::shared_ptr<VertexArray>& vertex_array,
+ uint32_t index_count = 0) = 0;
inline static API get_api() { return s_api; }
static Scope<RendererAPI> create();
-
private:
static API s_api;
};