/// <summary> /// Prepares the data structure for the next iteration. /// </summary> public void PreUpdate() { Graphics.ProgramWindow.DispatchEvents(); Time.Update(); Graphics.ClearWindow(); Input.Update(); }