diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules.h | 1 | ||||
-rw-r--r-- | src/opengl/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/opengl/gl.c | 20 |
3 files changed, 0 insertions, 22 deletions
diff --git a/src/modules.h b/src/modules.h index 29ab6b1..69e5900 100644 --- a/src/modules.h +++ b/src/modules.h @@ -13,7 +13,6 @@ X(logging) \ X(ode) \ X(util) \ - X(window) \ X(nvg) \ diff --git a/src/opengl/CMakeLists.txt b/src/opengl/CMakeLists.txt index 4328596..27d19d6 100644 --- a/src/opengl/CMakeLists.txt +++ b/src/opengl/CMakeLists.txt @@ -6,7 +6,6 @@ target_sources(honey PUBLIC ${GL}/data.c ${GL}/drawing.c ${GL}/shader.c - ${GL}/window.c ${GL}/texture.c ${GL}/gl.c ) diff --git a/src/opengl/gl.c b/src/opengl/gl.c index b8da1ec..532d818 100644 --- a/src/opengl/gl.c +++ b/src/opengl/gl.c @@ -14,9 +14,7 @@ #endif -int gl_init(lua_State *L); int glad_init(lua_State *L); -int gl_terminate(lua_State *L); int gl_get_error(lua_State *L); int gl_enable(lua_State *L); int gl_disable(lua_State *L); @@ -25,9 +23,7 @@ void setup_gl(lua_State *L, int honey_index) { struct honey_tbl_t tbl[] = { /* functions */ - H_FUNC("Init", gl_init), H_FUNC("InitGlad", glad_init), - H_FUNC("Terminate", gl_terminate), H_FUNC("GetError", gl_get_error), H_FUNC("Enable", gl_enable), H_FUNC("Disable", gl_disable), @@ -65,15 +61,6 @@ void setup_gl(lua_State *L, int honey_index) } -int gl_init(lua_State *L) -{ - if (!glfwInit()) { - luaL_error(L, "failed to initialize GLFW"); - } - return 0; -} - - int glad_init(lua_State *L) { if (!gladLoadGLLoader((GLADloadproc)glfwGetProcAddress)) { @@ -82,13 +69,6 @@ int glad_init(lua_State *L) } -int gl_terminate(lua_State *L) -{ - glfwTerminate(); - return 0; -} - - int gl_get_error(lua_State *L) { lua_pushinteger(L, glGetError()); |