updateWindow

fnvoid updateWindow(alias loopFunc)() @trusted

Updates the window every frame with the given function. Returns when the given function returns true.