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