public void DrawTriangles(string name, int triangleCount) { if (!_objectsHandleDictionary.ContainsKey(name)) { throw new ApplicationException("Object must be added to the renderer before drawing"); } GL.BindVertexArray(_objectsHandleDictionary[name].ObjectHandle); GL.DrawElements(BeginMode.Triangles, triangleCount, DrawElementsType.UnsignedInt, IntPtr.Zero); }