Namespace: DeltaEngine.Rendering2D.Shapes.Tests
Assembly: DeltaEngine.Rendering2D.Shapes.Tests (in DeltaEngine.Rendering2D.Shapes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Rendering2D.Shapes.Tests (in DeltaEngine.Rendering2D.Shapes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, Category("Slow")] public void DrawFourHundredComplexPolygons() { // 20*20=400 * 500 polygons each is 200000 polygons (needs to be rendered in batches) for (int y = 0; y < 20; y++) for (int x = 0; x < 20; x++) CreatePolygon(new Vector2D(0.025f, 0.025f) + new Vector2D(x / 20.0f, y / 20.0f), 0.025f, Color.GetRandomColor()); }
See Also