diff options
Diffstat (limited to 'src/Rendering/Renderer.h')
| -rw-r--r-- | src/Rendering/Renderer.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/Rendering/Renderer.h b/src/Rendering/Renderer.h index 82c156e..3083c4c 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 SetViewport(uint32_t x, uint32_t y, uint32_t width, uint32_t height) = 0; - virtual void SetClearColor(const glm::vec4& color) = 0; - virtual void Clear() = 0; - virtual void EnableDepthTest() = 0; - virtual void SetFaceCulling(bool enabled) = 0; + virtual void Init() = 0; + virtual void SetViewport(uint32_t x, uint32_t y, + uint32_t width, uint32_t height) = 0; + virtual void SetClearColor(const glm::vec4& color) = 0; + virtual void Clear() = 0; + virtual void EnableDepthTest() = 0; + virtual void SetFaceCulling(bool enabled) = 0; - virtual void DrawIndexed(const std::shared_ptr<VertexArray>& vertexArray, uint32_t indexCount = 0) = 0; + virtual void DrawIndexed(const std::shared_ptr<VertexArray>& vertexArray, + uint32_t indexCount = 0) = 0; inline static API GetAPI() { return s_API; } static Scope<RendererAPI> Create(); - private: static API s_API; }; |
