int glLineWidth_bind(lua_State *L) { GLfloat width = luaL_checknumber(L, 1); glLineWidth(width); return 0; } int glLinkProgram_bind(lua_State *L) { GLuint program = luaL_checkinteger(L, 1); glLinkProgram(program); return 0; } int glLogicOp_bind(lua_State *L) { GLenum opcode = luaL_checkinteger(L, 1); glLogicOp(opcode); return 0; }