Update RingRayLib - raylib.c - Add Function : bool IsWindowReady(void)
@@ -47,9 +47,20 @@ RING_FUNC(ring_CloseWindow)
CloseWindow();
}
+
+RING_FUNC(ring_IsWindowReady)
+{
+ if ( RING_API_PARACOUNT != 0 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ return ;
+ }
+ RING_API_RETNUMBER(IsWindowReady());
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
ring_vm_funcregister("windowshouldclose",ring_WindowShouldClose);
ring_vm_funcregister("closewindow",ring_CloseWindow);
+ ring_vm_funcregister("iswindowready",ring_IsWindowReady);
}
