Ejemplo n.º 1
0
        private void ApplicationIdle(object sender, EventArgs e)
        {
            while (GLViewRight.IsIdle || GLViewLeft.IsIdle)
            {
                displayFPS();

                GLViewRight.Invalidate();
                GLViewLeft.Invalidate();
            }
        }
Ejemplo n.º 2
0
        private void densityMin_TextChanged(object sender, EventArgs e)
        {
            char[] rule = { '-', '+' };
            if (densityMin.Text.All(char.IsDigit) || densityMin.Text.IndexOfAny(rule) >= 0)
            {
                Globals.Explorer[0].OutputMin = (short)Math.Max(Math.Min(Convert.ToInt32(densityMin.Text), 32767), -32768);
                Globals.Explorer[1].OutputMin = (short)Math.Max(Math.Min(Convert.ToInt32(densityMin.Text), 32767), -32768);

                Globals.Explorer[0].DropTexture();
                Globals.Explorer[1].DropTexture();

                GLViewLeft.Invalidate();
                GLViewRight.Invalidate();
            }
        }
Ejemplo n.º 3
0
 private void hScroll_Scroll(object sender, ScrollEventArgs e)
 {
     GLViewLeft.Invalidate();
     GLViewRight.Invalidate();
 }