public void Render(Graphics graphics, Camera camera) { if (!root.IsVisible()) { return; } this.Camera = camera; root.Draw(graphics, 1f); if (Debug) { DrawDebug(); root.DebugRender(graphics); } }
public void Render(Batcher batcher, Camera camera) { if (!root.IsVisible()) { return; } Camera = camera; root.Draw(batcher, 1f); if (Debug) { DrawDebug(); root.DebugRender(batcher); } }