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, CloseAfterFirstFrame] public void ChangingMaterialChangesImageAndBlendMode() { var sprite = new Sprite(logoMaterial, Rectangle.HalfCentered); Assert.AreEqual("DeltaEngineLogoAlpha", sprite.Material.DiffuseMap.Name); Assert.AreEqual(BlendMode.Normal, sprite.BlendMode); var material = new Material(ShaderFlags.Position2DTextured, "Verdana12Font"); material.DiffuseMap.BlendMode = BlendMode.Opaque; sprite.Material = material; Assert.AreEqual("Verdana12Font", sprite.Material.DiffuseMap.Name); Assert.AreEqual(BlendMode.Opaque, sprite.BlendMode); }
See Also