Update RingRayLib - raylib.c - Add Function : bool WindowShouldClose(void)
@@ -27,7 +27,18 @@ RING_FUNC(ring_InitWindow)
InitWindow( (int ) RING_API_GETNUMBER(1), (int ) RING_API_GETNUMBER(2),RING_API_GETSTRING(3));
}
+
+RING_FUNC(ring_WindowShouldClose)
+{
+ if ( RING_API_PARACOUNT != 0 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ return ;
+ }
+ RING_API_RETNUMBER(WindowShouldClose());
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
+ ring_vm_funcregister("windowshouldclose",ring_WindowShouldClose);
}
