public void DrawArrays(Primitive[] primitives) { this.CheckUpdate(); int errorCode = PsmGraphicsContext.DrawArrays2(this.handle, primitives, 0, -1); if (errorCode != 0) { Error.ThrowNativeException(errorCode); } }
public void DrawArrays(Primitive[] primitives, int first, int count) { this.CheckUpdate(); if (count < 0) { count = int.MaxValue; } int errorCode = PsmGraphicsContext.DrawArrays2(this.handle, primitives, first, count); if (errorCode != 0) { Error.ThrowNativeException(errorCode); } }