summaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index cd7316e..c5ae5c6 100644
--- a/src/core.c
+++ b/src/core.c
@@ -302,6 +302,17 @@ int lcoreSetWindowTitle( lua_State *L ) {
}
/*
+> RL_lcoreCloseWindow()
+
+Close window and unload OpenGL context and free all resources
+*/
+int lcoreCloseWindow( lua_State *L ) {
+ state->run = false;
+
+ return 0;
+}
+
+/*
## Core - Timing
*/