CoriEngine
Loading...
Searching...
No Matches
GL_GraphicsAPI.hpp
Go to the documentation of this file.
1#pragma once
3
4namespace Cori {
5 namespace Graphics {
6 namespace Internal {
7 class OpenGLGraphicsAPI final : public CoriGraphicsAPI {
8 public:
10
11 void Init() override;
12
13 void SetViewport(const int32_t x, const int32_t y, const int32_t width, const int32_t height) override;
14
15 void SetClearColor(const glm::vec4& color) override;
16 void ClearFramebuffer() override;
17
18 void DrawElementsTriangles(const uint32_t elementCount) override;
19
20 void DrawElementsInstancedTriangles(const uint32_t instanceCount) override;
21
22 void EnableDepthTest() override;
23 void DisableDepthTest() override;
24
25 void EnableBlending() override;
26 void DisableBlending() override;
27
28 void SetDepthMask(const bool mode) override;
29 };
30 }
31 }
32}
void SetDepthMask(const bool mode) override
void SetClearColor(const glm::vec4 &color) override
void DrawElementsInstancedTriangles(const uint32_t instanceCount) override
void DrawElementsTriangles(const uint32_t elementCount) override
void SetViewport(const int32_t x, const int32_t y, const int32_t width, const int32_t height) override
Almost everything connected to graphics is in this namespace.
Definition Window.hpp:7
Global engine namespace.