aboutsummaryrefslogtreecommitdiff
path: root/src/sysbin/lx/lxlib.h
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2017-04-21 18:26:22 +0200
committerAlex Auvolat <alex@adnab.me>2017-04-21 18:26:22 +0200
commited153e6a5b9f001bbe49128e6bc53053f55dd37b (patch)
tree9a9bbe3551ea1b5de71aa3c358fd13f46c603191 /src/sysbin/lx/lxlib.h
parentf8334e283c5eb0efeb4bb8a134041e18388d5f01 (diff)
downloadkogata-ed153e6a5b9f001bbe49128e6bc53053f55dd37b.tar.gz
kogata-ed153e6a5b9f001bbe49128e6bc53053f55dd37b.zip
Can plot on a surface from lua
Diffstat (limited to 'src/sysbin/lx/lxlib.h')
-rw-r--r--src/sysbin/lx/lxlib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sysbin/lx/lxlib.h b/src/sysbin/lx/lxlib.h
index 260db97..643d5c8 100644
--- a/src/sysbin/lx/lxlib.h
+++ b/src/sysbin/lx/lxlib.h
@@ -8,9 +8,12 @@
// Helper for libraries
bool lx_checkboolean(lua_State *L, int arg);
+void* lx_checklightudata(lua_State *L, int arg);
void setintfield (lua_State *L, const char *key, int value);
void setstrfield (lua_State *L, const char *key, const char* value);
+int getintfield(lua_State *L, int arg, const char *key);
+
#define LX_SYSLIBNAME "lx.sys"
LUAMOD_API int (lx_open_sys) (lua_State *L);
@@ -22,6 +25,9 @@ LUAMOD_API int (lx_open_ioctl) (lua_State *L);
LUAMOD_API int (luaopen_cmsgpack) (lua_State *L);
#define lx_open_msg luaopen_cmsgpack
+#define LX_DRAWLIBNAME "lx.draw"
+LUAMOD_API int (lx_open_draw) (lua_State *L);
+
/* open all previous libraries */
LUALIB_API void (lx_openlibs) (lua_State *L);