summaryrefslogtreecommitdiff
path: root/chisel/backends/opengl/gl_window.h
diff options
context:
space:
mode:
Diffstat (limited to 'chisel/backends/opengl/gl_window.h')
-rw-r--r--chisel/backends/opengl/gl_window.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/chisel/backends/opengl/gl_window.h b/chisel/backends/opengl/gl_window.h
new file mode 100644
index 0000000..27c341c
--- /dev/null
+++ b/chisel/backends/opengl/gl_window.h
@@ -0,0 +1,21 @@
+#pragma once
+
+#include "../../window.h"
+
+#include <glad/glad.h>
+#include <GLFW/glfw3.h>
+
+namespace chisel {
+ void glfw_init();
+ void glfw_finish();
+
+ struct GLWindow : public Window {
+ GLWindow();
+ virtual ~GLWindow();
+
+ void fill_rect(float x, float y, float width, float height);
+
+ GLFWwindow *glfw_window;
+ static int gl_window_count;
+ };
+}; \ No newline at end of file