Namespace: DeltaEngine.Graphics.Tests
Assembly: DeltaEngine.Graphics.Tests (in DeltaEngine.Graphics.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Graphics.Tests (in DeltaEngine.Graphics.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame] public void OffsetSeveralIncrements() { const int VerticesCount = 32; const int IndicesCount = 48; var vertices = new VertexPosition2DUV[VerticesCount]; var indices = new short[IndicesCount]; for (int i = 1; i <= IncrementCount; i++) { buffer2D.Add(null, vertices, indices); Assert.AreEqual(i * VerticesCount * vertexSize, buffer2D.VertexOffset); Assert.AreEqual(i * IndicesCount * sizeof(short), buffer2D.IndexOffset); } }
See Also