Beispiel #1
0
        ///<summary> A set of rectangle indexes of reccount rectangles, with a restart after each rectangle, in Byte indexes </summary>

        public void CreateRectangleElementIndexByte(GLBuffer elementbuf, int reccount, uint restartindex = 0xff)
        {
            ElementBuffer = elementbuf;
            ElementBuffer.FillRectangularIndicesBytes(reccount, restartindex);
            ElementIndexSize = DrawElementsType.UnsignedByte;
            DrawCount        = ElementBuffer.Length - 1; // -1 because we do not need the last restart index to be processed
            //byte[] b = elementbuf.ReadBuffer(0, elementbuf.BufferSize); // test read back
        }