public void CommitPrimitive(PrimitiveType mode, IEnumerable <int> indices = null) { var enumerable = indices?.Select(x => _primitiveIndices[x]) ?? _primitiveIndices; switch (mode) { case PrimitiveType.Triangles: Indices.AddRange(enumerable); break; case PrimitiveType.TriangleStrip: Indices.AddRange(GetTriangleStripEnumerable(enumerable)); break; case PrimitiveType.TriangleFan: Indices.AddRange(GetTriangleFanEnumerable(enumerable)); break; default: throw new NotImplementedException(); } }
public static void DrawElementsInstanced <T3>(OpenTK.Graphics.ES20.PrimitiveType mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, [InAttribute, OutAttribute] ref T3 indices, Int32 primcount) where T3 : struct { throw new NotImplementedException(); }
public static void DrawArraysInstanced(OpenTK.Graphics.ES20.PrimitiveType mode, Int32 first, Int32 count, Int32 primcount) { throw new NotImplementedException(); }
public static void DrawElementsInstanced(OpenTK.Graphics.ES20.PrimitiveType mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, IntPtr indices, Int32 primcount) { throw new NotImplementedException(); }