summaryrefslogtreecommitdiff
path: root/include/lua_core.h
diff options
context:
space:
mode:
authorjussi2023-10-26 20:09:16 +0300
committerjussi2023-10-26 20:09:16 +0300
commit56c365c8cc88455d69df42e7842c986e760c776e (patch)
treed4ad09280cdad3ad0e46146aa4cd149f5400b9b0 /include/lua_core.h
parent168f4959d4a265d7615a81b667917754ca85bfce (diff)
downloadreilua-enhanced-56c365c8cc88455d69df42e7842c986e760c776e.tar.gz
reilua-enhanced-56c365c8cc88455d69df42e7842c986e760c776e.tar.bz2
reilua-enhanced-56c365c8cc88455d69df42e7842c986e760c776e.zip
Buffer userdata object and rlgl Vertex buffers management.
Diffstat (limited to 'include/lua_core.h')
-rw-r--r--include/lua_core.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/lua_core.h b/include/lua_core.h
index ed5fb7d..32c809c 100644
--- a/include/lua_core.h
+++ b/include/lua_core.h
@@ -14,6 +14,20 @@ enum EventType {
EVENT_CURSOR_ENTER
};
+enum BufferType {
+ BUFFER_UNSIGNED_CHAR,
+ BUFFER_UNSIGNED_SHORT,
+ BUFFER_UNSIGNED_INT,
+ BUFFER_FLOAT,
+};
+
+typedef struct {
+ size_t size;
+ void *data;
+ int x;
+ int y;
+} Buffer;
+
bool luaInit( int argn, const char **argc );
int luaTraceback( lua_State *L );
bool luaCallMain();