WindowShouldClose and custom main loop example.

This commit is contained in:
jussi
2024-11-22 14:57:31 +02:00
parent c9ebe23d62
commit cb2b0e4dff
8 changed files with 83 additions and 5 deletions

View File

@@ -54,6 +54,18 @@ int lcoreCloseWindow( lua_State* L ) {
return 0;
}
/*
> RL.WindowShouldClose()
Check if application should close (KEY_ESCAPE pressed or windows close icon clicked).
Note! Not needed unless you want to make custom main loop
*/
int lcoreWindowShouldClose( lua_State* L ) {
lua_pushboolean( L, WindowShouldClose() );
return 1;
}
/*
> state = RL.IsWindowReady()