VertexFormatTests VertexPositionColorTextured2D Method Delta Engine Documentation

Namespace: DeltaEngine.Graphics.Tests
Assembly: DeltaEngine.Graphics.Tests (in DeltaEngine.Graphics.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void VertexPositionColorTextured2D()
Examples

[Test]
public void VertexPositionColorTextured2D()
{
    var vertex = new VertexPosition2DColorUV(Vector2D.Zero, Color.Red, Vector2D.One);
    Assert.AreEqual(vertex.Position, Vector2D.Zero);
    Assert.AreEqual(vertex.Color, Color.Red);
    Assert.AreEqual(vertex.UV, Vector2D.One);
}
See Also