コード例 #1
0
 /// <summary>
 /// Set X coordinates for points in GL buffer according to current zoom level in the data set
 /// </summary>
 /// <param name="divider">Samplerate divider</param>
 private void SetX(int divider)
 {
     for (int i = 0; i < _floatTemp.Length; i++)
     {
         _floatTemp[i] = i * divider;
     }
     _ringBuffer.SetVerticesX(_floatTemp);
 }
コード例 #2
0
        private void SetXTriangles(int divider)
        {
            for (int i = 0; i < _floatTemp.Length; i += 2)
            {
                _floatTemp[i + 0] = i * divider;
                _floatTemp[i + 1] = _floatTemp[i + 0];
            }
            _ringBuffer.SetVerticesX(_floatTemp);

            for (int i = 0; i < _floatTemp.Length; i++)
            {
                _floatTemp[i] = i * divider * 2;
            }
            _ringBufferMax.SetVerticesX(_floatTemp);
            _ringBufferMin.SetVerticesX(_floatTemp);
        }