private DrawElementsInstanced ( |
||
mode | ||
count | ||
type | ||
indices | ||
primcount | ||
return | void |
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 }