Geometry NumberOfIndices Property Delta Engine Documentation

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

public int NumberOfIndices { get; }

Property Value

Type: Int32
Remarks

Tests: DeltaEngine.Graphics.Tests.GeometryTests
Examples

1 unit tests call DeltaEngine.Graphics.Geometry.NumberOfIndices
[Test, CloseAfterFirstFrame]
public void CreateGeometry()
{
    var creationData = new GeometryCreationData(VertexFormat.Position3DColor, 1, 1);
    var geometry = ContentLoader.Create<TestGeometry>(creationData);
    geometry.LoadValidData();
    Assert.AreEqual(6, geometry.NumberOfIndices);
    Assert.AreEqual(1, geometry.NumberOfVertices);
    geometry.LoadFromFile(TestGeometry.CreateValidData());
    Assert.AreEqual(6, geometry.NumberOfIndices);
    Assert.AreEqual(1, geometry.NumberOfVertices);
    Assert.AreEqual(VertexFormat.Position3DColor, geometry.Format);
}
See Also