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

[Test]
public void VertexFormatGetVertexElement()
{
    var elements = new[] {
        new VertexElement(VertexElementType.Position3D),
        new VertexElement(VertexElementType.TextureUV) };
    var format = new VertexFormat(elements);
    Assert.IsNull(format.GetElementFromType(VertexElementType.Color));
    Assert.IsNotNull(format.GetElementFromType(VertexElementType.TextureUV));
}
See Also