RL.config and InitWindow.

This commit is contained in:
jussi
2024-11-21 23:25:28 +02:00
parent d96e33bb17
commit c9ebe23d62
23 changed files with 189 additions and 221 deletions

View File

@@ -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 );

View File

@@ -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();

View File

@@ -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();