summaryrefslogtreecommitdiff
path: root/ReiLua_API.lua
diff options
context:
space:
mode:
authorjussi2024-11-22 14:57:31 +0200
committerjussi2024-11-22 14:57:31 +0200
commitcb2b0e4dff5e1d98054f9e5f809fd3a14cd220a1 (patch)
treee64efb0dedce13c03011186de34c72a06cad1757 /ReiLua_API.lua
parentc9ebe23d6282e96b410dc7687e0be1c4f3ba1b4d (diff)
downloadreilua-enhanced-cb2b0e4dff5e1d98054f9e5f809fd3a14cd220a1.tar.gz
reilua-enhanced-cb2b0e4dff5e1d98054f9e5f809fd3a14cd220a1.tar.bz2
reilua-enhanced-cb2b0e4dff5e1d98054f9e5f809fd3a14cd220a1.zip
WindowShouldClose and custom main loop example.
Diffstat (limited to 'ReiLua_API.lua')
-rw-r--r--ReiLua_API.lua5
1 files changed, 5 insertions, 0 deletions
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