updateWindow

fnvoid updateWindow(alias loop)()

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