diff options
author | sanine <sanine.not@pm.me> | 2023-03-12 00:18:09 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-03-12 00:18:09 -0600 |
commit | 427a7e24281ca345fa2799da628baa7cf5f81269 (patch) | |
tree | 4be5313239f12a6743b14fbf263dd564eed572c1 /src/opengl | |
parent | b2f8ef6dad8925b43b87015e2c10b12f10a2f415 (diff) |
remove opengl binds
Diffstat (limited to 'src/opengl')
-rw-r--r-- | src/opengl/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/opengl/gl.c | 20 |
2 files changed, 0 insertions, 21 deletions
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()); |