From 51c7235d4e0a2df109dd5050328a0ad4a1878ae4 Mon Sep 17 00:00:00 2001 From: sanine Date: Fri, 10 Mar 2023 02:05:18 -0600 Subject: refactor: move glfw functions into separate table --- src/opengl/bind/w.bind | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/opengl/bind/w.bind (limited to 'src/opengl/bind/w.bind') 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; +} + + -- cgit v1.2.1