int glfwDefaultWindowHints_bind(lua_State *L) { glfwDefaultWindowHints(); return 0; } int glfwWindowHint_bind(lua_State *L) { int hint = luaL_checkinteger(L, 1); int value = luaL_checkinteger(L, 2); glfwWindowHint(hint, value); return 0; } int glfwWindowHintString_bind(lua_State *L) { int hint = luaL_checkinteger(L, 1); const char * value = luaL_checkstring(L, 2); glfwWindowHintString(hint, value); return 0; } int glfwCreateWindow_bind(lua_State *L) { int width = luaL_checkinteger(L, 1); int height = luaL_checkinteger(L, 2); const char * title = luaL_checkstring(L, 3); GLFWmonitor * monitor = get: GLFWmonitor * GLFWwindow * share = get: GLFWwindow * GLFWwindow * bind_result = glfwCreateWindow(width, height, title, monitor, share); /* push result */ return /* count */; } int glfwDestroyWindow_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * glfwDestroyWindow(window); return 0; } int glfwWindowShouldClose_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * int bind_result = glfwWindowShouldClose(window); lua_pushinteger(L, bind_result); return 1; } int glfwSetWindowShouldClose_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * int value = luaL_checkinteger(L, 2); glfwSetWindowShouldClose(window, value); return 0; } int glfwSetWindowTitle_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * const char * title = luaL_checkstring(L, 2); glfwSetWindowTitle(window, title); return 0; } int glfwSetWindowIcon_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * int count = luaL_checkinteger(L, 2); const GLFWimage * images = get: const GLFWimage * glfwSetWindowIcon(window, count, images); return 0; } int glfwGetWindowPos_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * int * xpos = get: int * int * ypos = get: int * glfwGetWindowPos(window, xpos, ypos); return 0; } int glfwSetWindowPos_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * int xpos = luaL_checkinteger(L, 2); int ypos = luaL_checkinteger(L, 3); glfwSetWindowPos(window, xpos, ypos); return 0; } int glfwGetWindowSize_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * int * width = get: int * int * height = get: int * glfwGetWindowSize(window, width, height); return 0; } int glfwSetWindowSizeLimits_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * int minwidth = luaL_checkinteger(L, 2); int minheight = luaL_checkinteger(L, 3); int maxwidth = luaL_checkinteger(L, 4); int maxheight = luaL_checkinteger(L, 5); glfwSetWindowSizeLimits(window, minwidth, minheight, maxwidth, maxheight); return 0; } int glfwSetWindowAspectRatio_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * int numer = luaL_checkinteger(L, 2); int denom = luaL_checkinteger(L, 3); glfwSetWindowAspectRatio(window, numer, denom); return 0; } int glfwSetWindowSize_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * int width = luaL_checkinteger(L, 2); int height = luaL_checkinteger(L, 3); glfwSetWindowSize(window, width, height); return 0; } int glfwGetFramebufferSize_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * int * width = get: int * int * height = get: int * glfwGetFramebufferSize(window, width, height); return 0; } int glfwGetWindowFrameSize_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * int * left = get: int * int * top = get: int * int * right = get: int * int * bottom = get: int * glfwGetWindowFrameSize(window, left, top, right, bottom); return 0; } int glfwGetWindowContentScale_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * float * xscale = get: float * float * yscale = get: float * glfwGetWindowContentScale(window, xscale, yscale); return 0; } int glfwGetWindowOpacity_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * float bind_result = glfwGetWindowOpacity(window); lua_pushnumber(L, bind_result); return 1; } int glfwSetWindowOpacity_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * float opacity = luaL_checknumber(L, 2); glfwSetWindowOpacity(window, opacity); return 0; } int glfwIconifyWindow_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * glfwIconifyWindow(window); return 0; } int glfwRestoreWindow_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * glfwRestoreWindow(window); return 0; } int glfwMaximizeWindow_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * glfwMaximizeWindow(window); return 0; } int glfwShowWindow_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * glfwShowWindow(window); return 0; } int glfwHideWindow_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * glfwHideWindow(window); return 0; } int glfwFocusWindow_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * glfwFocusWindow(window); return 0; } int glfwRequestWindowAttention_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * glfwRequestWindowAttention(window); return 0; } int glfwGetWindowMonitor_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * GLFWmonitor * bind_result = glfwGetWindowMonitor(window); /* push result */ return /* count */; } int glfwSetWindowMonitor_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * GLFWmonitor * monitor = get: GLFWmonitor * int xpos = luaL_checkinteger(L, 3); int ypos = luaL_checkinteger(L, 4); int width = luaL_checkinteger(L, 5); int height = luaL_checkinteger(L, 6); int refreshRate = luaL_checkinteger(L, 7); glfwSetWindowMonitor(window, monitor, xpos, ypos, width, height, refreshRate); return 0; } int glfwGetWindowAttrib_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * int attrib = luaL_checkinteger(L, 2); int bind_result = glfwGetWindowAttrib(window, attrib); lua_pushinteger(L, bind_result); return 1; } int glfwSetWindowAttrib_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * int attrib = luaL_checkinteger(L, 2); int value = luaL_checkinteger(L, 3); glfwSetWindowAttrib(window, attrib, value); return 0; } int glfwSetWindowUserPointer_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * void * pointer = get: void * glfwSetWindowUserPointer(window, pointer); return 0; } int glfwGetWindowUserPointer_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * void * bind_result = glfwGetWindowUserPointer(window); /* push result */ return /* count */; } int glfwSetWindowPosCallback_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * GLFWwindowposfun callback = get: GLFWwindowposfun GLFWwindowposfun bind_result = glfwSetWindowPosCallback(window, callback); /* push result */ return /* count */; } int glfwSetWindowSizeCallback_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * GLFWwindowsizefun callback = get: GLFWwindowsizefun GLFWwindowsizefun bind_result = glfwSetWindowSizeCallback(window, callback); /* push result */ return /* count */; } int glfwSetWindowCloseCallback_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * GLFWwindowclosefun callback = get: GLFWwindowclosefun GLFWwindowclosefun bind_result = glfwSetWindowCloseCallback(window, callback); /* push result */ return /* count */; } int glfwSetWindowRefreshCallback_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * GLFWwindowrefreshfun callback = get: GLFWwindowrefreshfun GLFWwindowrefreshfun bind_result = glfwSetWindowRefreshCallback(window, callback); /* push result */ return /* count */; } int glfwSetWindowFocusCallback_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * GLFWwindowfocusfun callback = get: GLFWwindowfocusfun GLFWwindowfocusfun bind_result = glfwSetWindowFocusCallback(window, callback); /* push result */ return /* count */; } int glfwSetWindowIconifyCallback_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * GLFWwindowiconifyfun callback = get: GLFWwindowiconifyfun GLFWwindowiconifyfun bind_result = glfwSetWindowIconifyCallback(window, callback); /* push result */ return /* count */; } int glfwSetWindowMaximizeCallback_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * GLFWwindowmaximizefun callback = get: GLFWwindowmaximizefun GLFWwindowmaximizefun bind_result = glfwSetWindowMaximizeCallback(window, callback); /* push result */ return /* count */; } int glfwSetFramebufferSizeCallback_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * GLFWframebuffersizefun callback = get: GLFWframebuffersizefun GLFWframebuffersizefun bind_result = glfwSetFramebufferSizeCallback(window, callback); /* push result */ return /* count */; } int glfwSetWindowContentScaleCallback_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * GLFWwindowcontentscalefun callback = get: GLFWwindowcontentscalefun GLFWwindowcontentscalefun bind_result = glfwSetWindowContentScaleCallback(window, callback); /* push result */ return /* count */; } int glfwPollEvents_bind(lua_State *L) { glfwPollEvents(); return 0; } int glfwWaitEvents_bind(lua_State *L) { glfwWaitEvents(); return 0; } int glfwWaitEventsTimeout_bind(lua_State *L) { double timeout = luaL_checknumber(L, 1); glfwWaitEventsTimeout(timeout); return 0; } int glfwPostEmptyEvent_bind(lua_State *L) { glfwPostEmptyEvent(); return 0; } int glfwSwapBuffers_bind(lua_State *L) { GLFWwindow * window = get: GLFWwindow * glfwSwapBuffers(window); return 0; }