public void DrawLines(Content.Mesh10 lineMesh, Color color) { var effect = view.Content.Peek<Effect>(linedrawingEffect); effect.GetVariableByName("Color").AsVector().Set(new Vector4(color.R/255.0f, color.G/255.0f, color.B/255.0f, color.A/255.0f)); effect.GetTechniqueByIndex(0).GetPassByIndex(0).Apply(); lineMesh.Setup(view.Device10, view.Content.Peek<InputLayout>(new Content.VertexStreamLayoutFromEffect { Signature10 = effect.GetTechniqueByIndex(0).GetPassByIndex(0).Description.Signature, Layout = lineMesh.VertexStreamLayout })); lineMesh.Draw(view.Device10); view.Device10.InputAssembler.SetVertexBuffers(0, NullVB); }