//public void Go() //{ // base.Show(); // bool flag = true; // while (flag && (mogreWin.root != null)) // { // if ((DateTime.Now.Ticks - lastUpdate) > maxDelay) // { // lastUpdate = DateTime.Now.Ticks; // float activeAnimationPos = mogreWin.GetActiveAnimationPos(); // int num2 = (int)System.Math.Max((float)(100f * activeAnimationPos), (float)0f); // num2 = System.Math.Min(trackBarAnimPosition.Maximum, num2); // trackBarAnimPosition.Value = num2; // flag = mogreWin.root.RenderOneFrame(); // Application.DoEvents(); // } // } //} private void MogreForm_Paint(object sender, PaintEventArgs e) { mogreWin.Paint(); }
private void timer1_Tick(object sender, EventArgs e) { //this.Invalidate(); mogreWin.Paint(); }