diff options
Diffstat (limited to 'src/gl/honey_gl.h')
-rw-r--r-- | src/gl/honey_gl.h | 15 |
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 |