public void DrawInstanced(SlimDX.Direct3D10.Device device, int nInstances) { if (MeshType == MeshType.Indexed) device.DrawIndexedInstanced(NFaces * 3, nInstances, 0, 0, 0); else if (MeshType == MeshType.TriangleStrip || MeshType == MeshType.PointList || MeshType == MeshType.LineStrip) device.DrawInstanced(NVertices, nInstances, 0, 0); else throw new NotImplementedException(); }