From c9ebe23d6282e96b410dc7687e0be1c4f3ba1b4d Mon Sep 17 00:00:00 2001 From: jussi Date: Thu, 21 Nov 2024 23:25:28 +0200 Subject: RL.config and InitWindow. --- include/core.h | 1 + include/lua_core.h | 3 ++- include/state.h | 3 +-- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'include') 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(); -- cgit v1.2.3