diff options
| author | jussi | 2024-11-21 23:25:28 +0200 |
|---|---|---|
| committer | jussi | 2024-11-21 23:25:28 +0200 |
| commit | c9ebe23d6282e96b410dc7687e0be1c4f3ba1b4d (patch) | |
| tree | dfd26a87fb2b2f702f77728b98a1e6c193684631 /include | |
| parent | d96e33bb1772c28f630de32e09201c0cdea6f896 (diff) | |
| download | reilua-enhanced-c9ebe23d6282e96b410dc7687e0be1c4f3ba1b4d.tar.gz reilua-enhanced-c9ebe23d6282e96b410dc7687e0be1c4f3ba1b4d.tar.bz2 reilua-enhanced-c9ebe23d6282e96b410dc7687e0be1c4f3ba1b4d.zip | |
RL.config and InitWindow.
Diffstat (limited to 'include')
| -rw-r--r-- | include/core.h | 1 | ||||
| -rw-r--r-- | include/lua_core.h | 3 | ||||
| -rw-r--r-- | include/state.h | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/include/core.h b/include/core.h index 4dd6dda..e1647c2 100644 --- a/include/core.h +++ b/include/core.h @@ -4,6 +4,7 @@ void unloadBuffer( Buffer* buffer ); /* Window-related functions. */ +int lcoreInitWindow( lua_State* L ); int lcoreCloseWindow( lua_State* L ); int lcoreIsWindowReady( lua_State* L ); int lcoreIsWindowFullscreen( lua_State* L ); diff --git a/include/lua_core.h b/include/lua_core.h index 23213b1..b3d637c 100644 --- a/include/lua_core.h +++ b/include/lua_core.h @@ -26,7 +26,8 @@ void assingGlobalFunction( const char* name, int ( *functionPtr )( lua_State* ) bool luaInit( int argn, const char** argc ); int luaTraceback( lua_State* L ); -bool luaCallMain(); +void luaCallMain(); +void luaCallInit(); void luaCallUpdate(); void luaCallDraw(); void luaCallExit(); diff --git a/include/state.h b/include/state.h index 8dbe4e5..1e84b43 100644 --- a/include/state.h +++ b/include/state.h @@ -6,14 +6,12 @@ typedef struct { char* basePath; - bool hasWindow; bool run; bool gcUnload; int lineSpacing; /* We need to store copy here since raylib has it in static. */ Vector2 mouseOffset; Vector2 mouseScale; lua_State* luaState; - Vector2 resolution; int logLevelInvalid; Font defaultFont; Font guiFont; @@ -50,5 +48,6 @@ typedef struct { extern State* state; bool stateInit( int argn, const char** argc, const char* basePath ); +void stateContextInit(); void stateInitInterpret( int argn, const char** argc ); void stateFree(); |
