VertexFormatTests VertexPositionColorTextured3D 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 VertexPositionColorTextured3D()
Examples

[Test]
public void VertexPositionColorTextured3D()
{
    Assert.AreEqual(VertexPosition3DColorUV.SizeInBytes, 24);
    var vertex = new VertexPosition3DColorUV(Vector3D.UnitX, Color.Red, Vector2D.One);
    Assert.AreEqual(vertex.Format, VertexFormat.Position3DColorUV);
    Assert.AreEqual(vertex.Position, Vector3D.UnitX);
    Assert.AreEqual(vertex.Color, Color.Red);
    Assert.AreEqual(vertex.UV, Vector2D.One);
}
See Also