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

[Test]
public void HasProperties()
{
    var elements = new[] {
        new VertexElement(VertexElementType.Position3D),
        new VertexElement(VertexElementType.TextureUV) };
    var format = new VertexFormat(elements);
    Assert.IsTrue(format.HasUV);
    Assert.IsTrue(format.Is3D);
    Assert.IsFalse(format.HasColor);
    Assert.IsFalse(format.HasNormal);
    Assert.IsFalse(format.HasLightmap);
}
See Also