Namespace: DeltaEngine.Graphics
Assembly: DeltaEngine.Graphics (in DeltaEngine.Graphics.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Graphics.Tests.GeometryTests
1 unit tests call DeltaEngine.Graphics.Geometry.NumberOfVertices
Assembly: DeltaEngine.Graphics (in DeltaEngine.Graphics.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: Int32Remarks
Examples
[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