blob: 216c88501d810fe27c49727c3f704c8bff7d6071 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#pragma once
#include <glad/glad.h>
#include <GLFW/glfw3.h>
class RenderingBackend {
protected:
GLFWwindow* mWindow;
public:
virtual ~RenderingBackend() = default;
virtual void BeginFrame() = 0;
virtual void EndFrame() = 0;
GLFWwindow* GetWindow() const;
/// Common GLFW error handle callback for each rendering backend to use.
static void GlfwErrorCallback(int error, const char* message);
};
|