diff options
author | sanine <sanine.not@pm.me> | 2022-08-22 15:55:44 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-08-22 15:55:44 -0500 |
commit | 1f47b685f35455afcc7441389cdc60018f66d159 (patch) | |
tree | 640f1ae52966ad0b6621a0cd4b4f810f9186e803 /src/gl/gl.c | |
parent | d69f711275675d4b5da88117b14c1d15be232cf5 (diff) |
add textures
Diffstat (limited to 'src/gl/gl.c')
-rw-r--r-- | src/gl/gl.c | 2 |
1 files changed, 2 insertions, 0 deletions
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"); } |