internal static void Flush(Batcher batcher) { for (int i = 0; i < DeferredCount; i++) { var evt = DeferredEvents[i]; switch (evt.Type) { case 1: batcher.DrawString(Theme.DeveloperFont, evt.Message, evt.Position, evt.Color); break; case 2: batcher.DrawRect(evt.Rect, evt.Color); break; case 3: batcher.DrawHollowRect(evt.Rect, evt.Color, evt.Size); break; case 4: batcher.DrawPixel(evt.Position, evt.Color, evt.Size); break; case 5: batcher.DrawCircle(evt.Position, evt.Radius, evt.Color, evt.Size); break; case 6: batcher.DrawLine(evt.Position, evt.End, evt.Color, evt.Size); break; } } stringSplat.X = messagePadding; stringSplat.Y = messagePadding; DeferredCount = 0; }