From cb2b0e4dff5e1d98054f9e5f809fd3a14cd220a1 Mon Sep 17 00:00:00 2001 From: jussi Date: Fri, 22 Nov 2024 14:57:31 +0200 Subject: WindowShouldClose and custom main loop example. --- ReiLua_API.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ReiLua_API.lua') diff --git a/ReiLua_API.lua b/ReiLua_API.lua index f68df06..f757083 100644 --- a/ReiLua_API.lua +++ b/ReiLua_API.lua @@ -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 -- cgit v1.2.3