diff options
Diffstat (limited to 'include/lua_core.h')
| -rw-r--r-- | include/lua_core.h | 22 |
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(); |
