public void DrawTriangles(int indexOffsetInBytes, int numberOfIndicesToRender) { Shader.BindVertexDeclaration(); GLCore.DrawElements(BeginMode.Triangles, numberOfIndicesToRender, DrawElementsType.UnsignedShort, (IntPtr)indexOffsetInBytes); }
public static void DrawElements(BeginMode mode, int count, DrawElementsType type) { GLCore.DrawElements(mode, count, type, IntPtr.Zero); }