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

[Test]
public void CheckVertexPosition3DColorSkinned()
{
    Assert.AreEqual(32, VertexPosition3DColorSkinned.SizeInBytes);
    var skinning = new SkinningData(0, 0, 0.0f, 0.0f);
    var vertex = new VertexPosition3DColorSkinned(Vector3D.UnitX, Color.White, skinning);
    Assert.AreEqual(vertex.Format, VertexFormat.Position3DColorSkinned);
    Assert.AreEqual(Vector3D.UnitX, vertex.Position);
    Assert.AreEqual(Color.White, vertex.Color);
    Assert.AreEqual(skinning, vertex.Skinning);
    Assert.AreEqual(32, VertexPosition3DColorSkinned.SizeInBytes);
}
See Also