summaryrefslogtreecommitdiff
path: root/src/gl/honey_gl.h
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-03-01 22:42:10 -0600
committersanine <sanine.not@pm.me>2022-03-01 22:42:10 -0600
commit10288765588673645c1cc0a6e3d2245aff3f9080 (patch)
tree3a56953535c3e26156b41331631d51e25ff6bdb9 /src/gl/honey_gl.h
parent9c238237597de90c73cc65c3fccf2f49bfaa46b4 (diff)
add basic window functions, option parsing, and main loop
Diffstat (limited to 'src/gl/honey_gl.h')
-rw-r--r--src/gl/honey_gl.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/gl/honey_gl.h b/src/gl/honey_gl.h
index fc57037..8d5cdd9 100644
--- a/src/gl/honey_gl.h
+++ b/src/gl/honey_gl.h
@@ -1,18 +1,17 @@
#ifndef HONEY_GL_H
#define HONEY_GL_H
-#include <stdbool.h>
-
-#ifdef UNIT_TEST
-#include "test/mock/mock_GLFW.h"
-#else
#include "glad/glad.h"
#include <GLFW/glfw3.h>
-#endif
-extern int honey_gl_window_ref;
+struct honey_window {
+ GLFWwindow * window;
+ bool created;
+ lua_State *L;
+};
-bool honey_gl_setup();
+extern struct honey_window window;
+void setup_window(lua_State *L, int tbl_index);
#endif