Example #1
0
 public RawDataFragment(Zone z, uint strip, uint index, uint firstview, uint lastview)
 {
     this.m_CodingMode = FragmentCoding.GrainSuppression;
     this.m_Id.Part0   = 0;
     this.m_Id.Part1   = 0;
     this.m_Id.Part2   = 0;
     this.m_Id.Part3   = 0;
     this.m_Index      = index;
     this.m_StartView  = strip * z.Views + firstview;
     this.m_Views      = new GPUView[lastview - firstview + 1];
     for (int i = 0; i < m_Views.Length; i++)
     {
         m_Views[i] = new GPUView(i + (int)firstview, (int)strip);
     }
 }
Example #2
0
        private void StartTimer()
        {
            Device.StartTimer(new TimeSpan(50000), () =>
            {
                if (!running || GPUView.CanvasSize.Width < 0)
                {
                    return(true);
                }

                if (lines.Count > 40)
                {
                    lines.Dequeue();
                }

                // Add new line
                lastLine = GetNextLine();
                lines.Enqueue(lastLine);

                CPUView.InvalidateSurface();
                GPUView.InvalidateSurface();

                return(true);
            });
        }
Example #3
0
 private void OnChkBackgroundChanged(object sender, EventArgs args)
 {
     CPUView.InvalidateSurface();
     GPUView.InvalidateSurface();
 }