diff options
author | sanine <sanine.not@pm.me> | 2022-08-22 09:12:09 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-08-22 09:12:09 -0500 |
commit | f84ee69cdf694a1f64f2536efed4b7d0dd75553a (patch) | |
tree | 3269fa48abaab2e298dd1b83469524ae08ffda95 /src/gl/gl.c | |
parent | 33f3eb1c5a489a1b0c7d508e6a42f0dbb20e3a1b (diff) |
make hello triangle work
Diffstat (limited to 'src/gl/gl.c')
-rw-r--r-- | src/gl/gl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gl/gl.c b/src/gl/gl.c index 953cefb..cef93fa 100644 --- a/src/gl/gl.c +++ b/src/gl/gl.c @@ -47,6 +47,11 @@ int gl_clear(lua_State *L); void setup_gl(lua_State *L, int honey_index) { + int data_types = hs_create_table(L, + hs_str_int("integer", GL_INT), + hs_str_int("float", GL_FLOAT), + ); + int error_types = hs_create_table(L, hs_str_int("noError", GL_NO_ERROR), hs_str_int("invalidEnum", GL_INVALID_ENUM), @@ -89,6 +94,7 @@ void setup_gl(lua_State *L, int honey_index) hs_str_cfunc("terminate", gl_terminate), hs_str_cfunc("getError", gl_get_error), + hs_str_tbl("dataType", data_types), hs_str_tbl("errorType", error_types), /* buffer */ |