NoJobEngine 2.0.7
Loading...
Searching...
No Matches
OpenGLRendererAPI.h
Go to the documentation of this file.
1
6#pragma once
8
9namespace NoJob
10{
11 class OpenGLRendererAPI final : public RendererAPI
12 {
13 public:
14 void Init() override;
15
16 void SetViewport(
17 std::uint32_t x,
18 std::uint32_t y,
19 std::uint32_t width,
20 std::uint32_t height) override;
21
22 void SetClearColor(float r, float g, float b, float a) override;
23 void Clear() override;
24 void DrawIndexed(const VertexArray& vertexArray) override;
25 void DrawIndexedRange(const VertexArray& vertexArray,
26 std::uint32_t indexCount,
27 std::uint32_t indexOffset) override;
28
29 void DrawLines(
30 const VertexArray& vertexArray,
31 std::uint32_t vertexCount) override;
32 };
33}
RendererAPI declarations for the Rendering subsystem.
void DrawIndexedRange(const VertexArray &vertexArray, std::uint32_t indexCount, std::uint32_t indexOffset) override
void SetClearColor(float r, float g, float b, float a) override
void DrawIndexed(const VertexArray &vertexArray) override
void DrawLines(const VertexArray &vertexArray, std::uint32_t vertexCount) override
void SetViewport(std::uint32_t x, std::uint32_t y, std::uint32_t width, std::uint32_t height) override