public virtual void DrawWireframe(Camera c, Effect e, Matrix world)
{
if (WireframeCount == 0)
return;
e.Parameters["World"].SetValue(world);
e.Parameters["View"].SetValue(c.View);
e.Parameters["Projection"].SetValue(c.Projection);
e.CurrentTechnique.Passes[0].Apply();
Device.Indices = WireframeIndexBuffer;
Device.SetVertexBuffer(WireframeBuffer);
Device.DrawIndexedPrimitives(PrimitiveType.LineList, 0, 0, WireframeVertexCount, 0, WireframeCount / 2);
Device.SetVertexBuffer(null);
Device.Indices = null;
}