summaryrefslogtreecommitdiff
path: root/include/lua_core.h
diff options
context:
space:
mode:
authorjussi2023-11-23 00:00:49 +0200
committerjussi2023-11-23 00:00:49 +0200
commit1ab9722875c543e8fd1b6600fd16e51412181641 (patch)
tree412a3b0d139daa8832217e9e4240bd1cd299d4c5 /include/lua_core.h
parent85a48cf09302a2a14aeeb2d6cf3b8fcc1607e222 (diff)
downloadreilua-enhanced-1ab9722875c543e8fd1b6600fd16e51412181641.tar.gz
reilua-enhanced-1ab9722875c543e8fd1b6600fd16e51412181641.tar.bz2
reilua-enhanced-1ab9722875c543e8fd1b6600fd16e51412181641.zip
Support for different platforms. Platform_desktop_sdl.
Diffstat (limited to 'include/lua_core.h')
-rw-r--r--include/lua_core.h22
1 files changed, 7 insertions, 15 deletions
diff --git a/include/lua_core.h b/include/lua_core.h
index 431fc28..6c81aaa 100644
--- a/include/lua_core.h
+++ b/include/lua_core.h
@@ -1,20 +1,5 @@
#pragma once
-enum EventType {
- EVENT_WINDOW_SIZE,
- EVENT_WINDOW_MAXIMIZE,
- EVENT_WINDOW_ICONYFY,
- EVENT_WINDOW_FOCUS,
- EVENT_WINDOW_DROP,
- EVENT_KEY,
- EVENT_CHAR,
- EVENT_MOUSE_BUTTON,
- EVENT_MOUSE_CURSOR_POS,
- EVENT_MOUSE_SCROLL,
- EVENT_CURSOR_ENTER,
- EVENT_JOYSTICK
-};
-
enum BufferType {
BUFFER_UNSIGNED_CHAR,
BUFFER_UNSIGNED_SHORT,
@@ -32,6 +17,13 @@ typedef struct {
void *data;
} Buffer;
+/* Global assing functions. */
+void assignGlobalInt( int value, const char *name );
+void assignGlobalFloat( float value, const char *name );
+void assignGlobalDouble( double value, const char *name );
+void assignGlobalColor( Color color, const char *name );
+void assingGlobalFunction( const char *name, int ( *functionPtr )( lua_State* ) );
+
bool luaInit( int argn, const char **argc );
int luaTraceback( lua_State *L );
bool luaCallMain();