From 35dc4c496075df44efeba617e6283b6425dcc133 Mon Sep 17 00:00:00 2001 From: "Alejandro W. Sior" Date: Sun, 25 Jun 2023 11:13:48 +0200 Subject: initial commit --- chisel/backends/opengl/gl_window.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 chisel/backends/opengl/gl_window.h (limited to 'chisel/backends/opengl/gl_window.h') 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 +#include + +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 -- cgit v1.2.3