Hana
Loading...
Searching...
No Matches
RenderCommand.h
1#pragma once
2
3#include "Hana/Renderer/RendererAPI.h"
4
5namespace Hana
6{
8 {
9 public:
10 inline static void Init()
11 {
12 s_RendererAPI->Init();
13 }
14
15 inline static void SetViewport(uint32_t x, uint32_t y, uint32_t width, uint32_t height)
16 {
17 s_RendererAPI->SetViewport(x, y, width, height);
18 }
19
20 inline static void SetClearColor(const glm::vec4& color)
21 {
22 s_RendererAPI->SetClearColor(color);
23 }
24
25 inline static void Clear()
26 {
27 s_RendererAPI->Clear();
28 }
29
30 inline static void DrawIndexed(const Ref<VertexArray>& vertexArray)
31 {
32 s_RendererAPI->DrawIndexed(vertexArray);
33 }
34
35 private:
36 static Scope<RendererAPI> s_RendererAPI;
37 };
38}
Definition RenderCommand.h:8