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); }
static Mesh() { if (typeof(IndexType) == typeof(ushort)) { indiceType = IndiceType.UnsignedShort; } else if (typeof(IndexType) == typeof(uint)) { indiceType = IndiceType.UnsignedInt; } }
internal void DrawElements(PrimitivesType mode, IntPtr count, IndiceType type, IntPtr indices) { _glDrawElements((int)mode, count, (int)type, indices); }