Beispiel #1
0
 private void GLViewRight_Paint(object sender, PaintEventArgs e)
 {
     GLViewRight.MakeCurrent();
     Globals.Explorer[1].InitView(Globals.GLView[1].Width, Globals.GLView[1].Height);
     Globals.Explorer[1].Explore(hScroll.Value);
     GLViewRight.SwapBuffers();
 }
Beispiel #2
0
        private void ApplicationIdle(object sender, EventArgs e)
        {
            while (GLViewRight.IsIdle || GLViewLeft.IsIdle)
            {
                displayFPS();

                GLViewRight.Invalidate();
                GLViewLeft.Invalidate();
            }
        }
Beispiel #3
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();
            }
        }
Beispiel #4
0
 private void hScroll_Scroll(object sender, ScrollEventArgs e)
 {
     GLViewLeft.Invalidate();
     GLViewRight.Invalidate();
 }