DrawElementsInstanced() private method

private DrawElementsInstanced ( UInt32 mode, Int32 count, UInt32 type, IntPtr indices, Int32 primcount ) : void
mode System.UInt32
count System.Int32
type System.UInt32
indices System.IntPtr
primcount System.Int32
return void
Example #1
0
        public override void DrawInstanced(int drawCount)
        {
            enable();
            if (currentIndexBuffer == null)
            {
                GL.DrawArraysInstanced(primitiveTopology, 0, vertexCount, drawCount);
            }
            else
            {
                GL.DrawElementsInstanced(primitiveTopology, currentIndexBuffer.IndexCount, currentIndexBuffer._32BitIndices ? GL.UNSIGNED_INT : GL.UNSIGNED_SHORT, new IntPtr(0), drawCount);
            }

                        #if DEBUG
            Video.checkForError();
                        #endif
        }