From 1f47b685f35455afcc7441389cdc60018f66d159 Mon Sep 17 00:00:00 2001 From: sanine Date: Mon, 22 Aug 2022 15:55:44 -0500 Subject: add textures --- src/gl/gl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gl/gl.c') diff --git a/src/gl/gl.c b/src/gl/gl.c index 8f56d33..c4502dc 100644 --- a/src/gl/gl.c +++ b/src/gl/gl.c @@ -21,6 +21,7 @@ int gl_get_error(lua_State *L); void setup_gl(lua_State *L, int honey_index) { int data_types = hs_create_table(L, + hs_str_int("uchar", GL_UNSIGNED_BYTE), hs_str_int("uint", GL_UNSIGNED_INT), hs_str_int("int", GL_INT), hs_str_int("float", GL_FLOAT), @@ -48,6 +49,7 @@ void setup_gl(lua_State *L, int honey_index) setup_shader(L, gl_index); setup_drawing(L, gl_index); setup_data(L, gl_index); + setup_texture(L, gl_index); lua_setfield(L, honey_index, "gl"); } -- cgit v1.2.1