blob: 2a4dcbf04f4962384ca80f9154fd6f1dec2552f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#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);
};
|