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

@@ -1337,6 +1337,11 @@ function RL.InitWindow( size, title ) end
---@return any RL.CloseWindow
function RL.CloseWindow() end
---Check if application should close (KEY_ESCAPE pressed or windows close icon clicked).
---Note! Not needed unless you want to make custom main loop
---@return any RL.WindowShouldClose
function RL.WindowShouldClose() end
---Check if window has been initialized successfully
---- Success return bool
---@return any state