diff options
| author | sanine <sanine.not@pm.me> | 2022-10-07 21:34:18 -0500 | 
|---|---|---|
| committer | sanine <sanine.not@pm.me> | 2022-10-07 21:34:18 -0500 | 
| commit | 3dbe9332e47c143a237db12440f134caebd1cfbe (patch) | |
| tree | 1afdb3b24c1ddf2528b1cff14dfc0868789c1396 /src/image | |
| parent | ff14b4a939511d42aa0ca46ea2139637b74e6e8a (diff) | |
add basic framebuffers and additional float uniforms
Diffstat (limited to 'src/image')
| -rw-r--r-- | src/image/image.c | 8 | 
1 files changed, 8 insertions, 0 deletions
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;  | 
