Finality Engine
Loading...
Searching...
No Matches
RenderCommand.h
Go to the documentation of this file.
1
6#pragma once
7#include "RenderDevice.h"
8
9namespace FINALITY
10{
13 {
14 public:
15 inline static void SetClearColor(float r, float g, float b, float a)
16 {
17 s_RenderDevice->Clear(r, g, b, a);
18 }
19
20 inline static void Init(RenderDevice* device)
21 {
22 s_RenderDevice = device;
23 }
24
25 static void SetWindowTitle(const std::string& title);
26 static void SetCursorMode(bool hiddenAndLocked);
27
28 private:
29 static RenderDevice* s_RenderDevice;
30 };
31}
#define FAPI
Definition Core.h:22
Defines the graphics backend boundary and render submission contract.
static void SetClearColor(float r, float g, float b, float a)
static void Init(RenderDevice *device)
static void SetCursorMode(bool hiddenAndLocked)
static void SetWindowTitle(const std::string &title)
Defines the graphics backend boundary and render submission contract.