MonoGdx.Graphics.G2D.GdxSpriteBatch.CalculateIndexBuffer C# (CSharp) Method

CalculateIndexBuffer() private method

private CalculateIndexBuffer ( ) : void
return void
        private void CalculateIndexBuffer()
        {
            for (short i = 0; i < DefaultBatchSize; i++) {
                short vIndex = (short)(i * 4);
                short iIndex = (short)(i * 6);

                _indexes[iIndex + 0] = (short)(vIndex + 0);
                _indexes[iIndex + 1] = (short)(vIndex + 1);
                _indexes[iIndex + 2] = (short)(vIndex + 2);
                _indexes[iIndex + 3] = (short)(vIndex + 2);
                _indexes[iIndex + 4] = (short)(vIndex + 3);
                _indexes[iIndex + 5] = (short)(vIndex + 0);
            }
        }