Update RingRayLib - raylib.c - Add Function : int GetScreenWidth(void)
@@ -221,6 +221,16 @@ RING_FUNC(ring_GetWindowHandle)
RING_API_RETCPOINTER(GetWindowHandle(),"void");
}
+
+RING_FUNC(ring_GetScreenWidth)
+{
+ if ( RING_API_PARACOUNT != 0 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ return ;
+ }
+ RING_API_RETNUMBER(GetScreenWidth());
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -240,4 +250,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("setwindowminsize",ring_SetWindowMinSize);
ring_vm_funcregister("setwindowsize",ring_SetWindowSize);
ring_vm_funcregister("getwindowhandle",ring_GetWindowHandle);
+ ring_vm_funcregister("getscreenwidth",ring_GetScreenWidth);
}
