/// <summary> /// Renders primitives from array via indices with a per-element offset. /// </summary> /// <param name="mode">A <see cref="glDrawMode"/> specifying the type of primitive to render.</param> /// <param name="count">Number of indices.</param> /// <param name="type">A <see cref="glDrawElementsType"/> specifying the data type of the indices.</param> /// <param name="offset">The offset into the array bound to <see cref="glBufferTarget.ELEMENT_ARRAY_BUFFER"/>.</param> /// <param name="basevertex">The per-element offset.</param> public static void DrawElementsBaseVertex(glDrawMode mode, int count, glDrawElementsType type, int offset, int basevertex) { _DrawElementsBaseVertex(mode, count, type, (IntPtr)offset, basevertex); }