private void ApplicationIdle(object sender, EventArgs e) { while (GLViewRight.IsIdle || GLViewLeft.IsIdle) { displayFPS(); GLViewRight.Invalidate(); GLViewLeft.Invalidate(); } }
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(); } }
private void hScroll_Scroll(object sender, ScrollEventArgs e) { GLViewLeft.Invalidate(); GLViewRight.Invalidate(); }