diff options
| author | Alejandro W. Sior <aho@sior.be> | 2023-06-25 11:13:48 +0200 |
|---|---|---|
| committer | Alejandro W. Sior <aho@sior.be> | 2023-06-25 11:13:48 +0200 |
| commit | 35dc4c496075df44efeba617e6283b6425dcc133 (patch) | |
| tree | 87ba1f51d8e21b4fde08b4eb1eb9a710781b1c4f /chisel/backends/opengl/gl_window.h | |
Diffstat (limited to 'chisel/backends/opengl/gl_window.h')
| -rw-r--r-- | chisel/backends/opengl/gl_window.h | 21 |
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 |
