summaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
authorjussi2022-03-25 22:31:59 +0200
committerjussi2022-03-25 22:31:59 +0200
commit6d1c14e09cb7c7a5657374e8d102fd5bb48d0b73 (patch)
treeea890671a6737ca727b4895107624f886677811e /src/core.c
parent55ad8773ec7c857a51dbed8e9e9eea16515b6d02 (diff)
downloadreilua-enhanced-6d1c14e09cb7c7a5657374e8d102fd5bb48d0b73.tar.gz
reilua-enhanced-6d1c14e09cb7c7a5657374e8d102fd5bb48d0b73.tar.bz2
reilua-enhanced-6d1c14e09cb7c7a5657374e8d102fd5bb48d0b73.zip
More raygui functions and updated to raygui v3.2-dev.
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