From 3dbe9332e47c143a237db12440f134caebd1cfbe Mon Sep 17 00:00:00 2001 From: sanine Date: Fri, 7 Oct 2022 21:34:18 -0500 Subject: add basic framebuffers and additional float uniforms --- src/image/image.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/image') diff --git a/src/image/image.c b/src/image/image.c index 1c747e2..13152d0 100644 --- a/src/image/image.c +++ b/src/image/image.c @@ -7,6 +7,7 @@ #include "image.h" +int empty(lua_State *L); int load_image(lua_State *L); int free_image(lua_State *L); @@ -26,6 +27,7 @@ void setup_image(lua_State *L, int honey_index) { hs_create_table(L, /* basic images */ + hs_str_cfunc("null", empty), hs_str_cfunc("load", load_image), hs_str_cfunc("destroy", free_image), @@ -56,6 +58,12 @@ void setup_image(lua_State *L, int honey_index) /* --===== basic images =====-- */ +int empty(lua_State *L) +{ + lua_pushlightuserdata(L, NULL); + return 1; +} + int load_image(lua_State *L) { char *filename; -- cgit v1.2.1