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 5ba5274..ef8cfed 100644
--- a/src/core.c
+++ b/src/core.c
@@ -302,6 +302,18 @@ int lcoreSetWindowTitle( lua_State *L ) {
}
/*
+> count = RL_GetMonitorCount()
+
+Get number of connected monitors
+
+- Success return int
+*/
+int lcoreGetMonitorCount( lua_State *L ) {
+ lua_pushinteger( L, GetMonitorCount() );
+ return 1;
+}
+
+/*
> RL_CloseWindow()
Close window and unload OpenGL context and free all resources