Namespace: DeltaEngine.Graphics.Tests
Assembly: DeltaEngine.Graphics.Tests (in DeltaEngine.Graphics.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Graphics.Tests (in DeltaEngine.Graphics.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, ApproveFirstFrameScreenshot] public void ShowBillboardSpriteIn3DAsSimpleTriangle() { var drawing = Resolve<Drawing>(); var billboardMaterial = new Material(ShaderFlags.Textured, "DeltaEngineLogo"); new MaterialVertexDrawer( () => drawing.Add(billboardMaterial, new[] { new VertexPosition3DUV(new Vector3D(-3.0f, 3.0f, 0.0f), Vector2D.Zero), new VertexPosition3DUV(new Vector3D(-3.0f, -3.0f, 0.0f), Vector2D.UnitY), new VertexPosition3DUV(new Vector3D(3.0f, -3.0f, 0.0f), Vector2D.One) })); }
See Also