コード例 #1
0
        //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();
        }
コード例 #2
0
ファイル: MogreForm.cs プロジェクト: andyhebear/mogrelibrarys
 private void timer1_Tick(object sender, EventArgs e)
 {
     //this.Invalidate();
     mogreWin.Paint();
 }