CircularBufferTests OffsetIncrement 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 OffsetIncrement()
Examples

[Test, CloseAfterFirstFrame]
public void OffsetIncrement()
{
    const int VerticesCount = 32;
    const int IndicesCount = 48;
    var vertices = new VertexPosition2DUV[VerticesCount];
    var indices = new short[IndicesCount];
    buffer2D.Add(null, vertices, indices);
    Assert.AreEqual(VerticesCount * vertexSize, buffer2D.VertexOffset);
    Assert.AreEqual(IndicesCount * sizeof(short), buffer2D.IndexOffset);
}
See Also