summaryrefslogtreecommitdiff
path: root/src/glfw/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glfw/setup.c')
-rw-r--r--src/glfw/setup.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/glfw/setup.c b/src/glfw/setup.c
index 0abab35..4ba49a4 100644
--- a/src/glfw/setup.c
+++ b/src/glfw/setup.c
@@ -1,5 +1,6 @@
#include <lua.h>
#include <lauxlib.h>
+#include <GLFW/glfw3.h>
#include "util/util.h"
#include "setup.h"
@@ -29,5 +30,15 @@ void setup_glfw(lua_State *L, int honey_tbl)
};
create_table(L, tbl);
+ int t = lua_gettop(L);
+
+ GLFWwindow ** window_null = create_window(L);
+ *window_null = NULL;
+ lua_setfield(L, t, "window_NULL");
+
+ GLFWmonitor ** monitor_null = create_monitor(L);
+ *monitor_null = NULL;
+ lua_setfield(L, t, "monitor_NULL");
+
lua_setfield(L, honey_tbl, "glfw");
}