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] public void SetColorRotationAndRenderLayerProperties() { var entity = new Entity2D(Rectangle.One) { Color = Color.Blue }; entity.Color = Color.Teal; Assert.AreEqual(Color.Teal, entity.Color); entity.Alpha = 0.5f; Assert.AreEqual(0.5f, entity.Alpha, 0.05f); entity.Rotation = MathExtensions.Pi; Assert.AreEqual(MathExtensions.Pi, entity.Rotation); entity.RenderLayer = 10; Assert.AreEqual(10, entity.RenderLayer); entity.RenderLayer = 1; Assert.AreEqual(1, entity.RenderLayer); }
See Also