summaryrefslogtreecommitdiff
path: root/src/opengl/bind/w.bind
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-03-10 02:05:18 -0600
committersanine <sanine.not@pm.me>2023-03-10 02:05:18 -0600
commit51c7235d4e0a2df109dd5050328a0ad4a1878ae4 (patch)
tree201b065e93bf6a35d2bab0e49bcd32f7a971da94 /src/opengl/bind/w.bind
parent5bb783912ac384156b8abbe6e83a5a61da73881d (diff)
refactor: move glfw functions into separate table
Diffstat (limited to 'src/opengl/bind/w.bind')
-rw-r--r--src/opengl/bind/w.bind10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/opengl/bind/w.bind b/src/opengl/bind/w.bind
new file mode 100644
index 0000000..6f5210c
--- /dev/null
+++ b/src/opengl/bind/w.bind
@@ -0,0 +1,10 @@
+int glWaitSync_bind(lua_State *L)
+{
+ GLsync sync = luaL_checkinteger(L, 1);
+ GLbitfield flags = luaL_checkinteger(L, 2);
+ GLuint64 timeout = luaL_checkinteger(L, 3);
+ glWaitSync(sync, flags, timeout);
+ return 0;
+}
+
+