Namespace: DeltaEngine.Rendering2D.Tests
Assembly: DeltaEngine.Rendering2D.Tests (in DeltaEngine.Rendering2D.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Rendering2D.Tests (in DeltaEngine.Rendering2D.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, ApproveFirstFrameScreenshot] public void DrawFlippedSprites() { new Sprite(logoMaterial, Rectangle.FromCenter(new Vector2D(0.2f, 0.35f), new Size(0.2f))); var flippedX = new Sprite(logoMaterial, Rectangle.FromCenter(new Vector2D(0.6f, 0.35f), new Size(0.2f))); flippedX.FlipMode = FlipMode.Horizontal; var flippedY = new Sprite(logoMaterial, Rectangle.FromCenter(new Vector2D(0.2f, 0.65f), new Size(0.2f))); flippedY.FlipMode = FlipMode.Vertical; var flippedXy = new Sprite(logoMaterial, Rectangle.FromCenter(new Vector2D(0.6f, 0.65f), new Size(0.2f))); flippedXy.FlipMode = FlipMode.HorizontalAndVertical; }
See Also