Exemple #1
0
 public void GlDraw()
 {
     GL.Begin(GL.LINES);
     GL.Color(Color);
     for (var i = 0; i < _buffer.Length; i++)
     {
         GL.Vertex(_buffer.GetByIndexStartFromOldest(i - 1));
         GL.Vertex(_buffer.GetByIndexStartFromOldest(i));
     }
     GL.End();
 }
Exemple #2
0
            public bool MoveNext()
            {
                if (++_index >= _collection.Length)
                {
                    return(false);
                }

                Current = _collection.GetByIndexStartFromOldest(_index);
                return(true);
            }