public void DrawElements(PrimitivesType mode, int count, IndiceType type, IntPtr indices) { if (count < 0) { throw new Exception("Invalid element count"); } DrawElements(mode, new IntPtr(count), type, indices); }
public void DrawElements(PrimitivesType mode, int count, uint[] indices, int offset) { if (count < 0) { throw new Exception("Invalid element count"); } if (count < 0) { throw new Exception("Invalid offset"); } fixed(uint *pIndices = &indices[0]) { DrawElements(mode, new IntPtr(count), IndiceType.GL_UNSIGNED_INT, new IntPtr(pIndices + offset)); } }
public void DrawElements(PrimitivesType mode, uint[] indices) { DrawElements(mode, indices.Length, indices, 0); }
internal void DrawElements(PrimitivesType mode, IntPtr count, IndiceType type, IntPtr indices) { _glDrawElements((int)mode, count, (int)type, indices); }