summaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 3ca5a3e..c5736da 100644
--- a/src/core.c
+++ b/src/core.c
@@ -55,6 +55,18 @@ int lcoreCloseWindow( lua_State* L ) {
}
/*
+> 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()
Check if window has been initialized successfully