public DeferredLinesElement CreateLinesElement()
        {
            var el = new DeferredLinesElement(this, game.Device);

            lineElements.Add(el);
            return(el);
        }
 public void DeleteLinesElement(DeferredLinesElement el)
 {
     if (!lineElements.Contains(el))
     {
         throw new InvalidOperationException();
     }
     lineElements.Remove(el);
     el.Lines.Dispose();
 }