예제 #1
0
파일: script.cs 프로젝트: wineforever/MDT
        private void RenderTimer_Tick(object sender, EventArgs e)
        {
            //重绘
            var winSize = new float[] { 0, 0, RenderWindow.Width, RenderWindow.Height };

            Wineforever.Coordinate.client.Initialization("3D", winSize, true, CheckBox.Checked
                                                         );
            //刷新帧
            if (CURRENT_FRAME >= MOCAP_FRAMES.Count - 1)
            {
                CURRENT_FRAME = 0;
            }
            else
            {
                CURRENT_FRAME++;
            }
            Render();
            RenderWindow.Image = Wineforever.Coordinate.client.Show();
            //其他
            PrintWindow.Text = Debug;
            PrintWindow.Select(this.PrintWindow.TextLength, 0); //光标定位到文本最后
            PrintWindow.ScrollToCaret();                        //滚动到光标处
            try
            {
                SCALE        = double.Parse(inputbox_scale.Text);
                POINTS_COUNT = int.Parse(inputbox_pointsCount.Text);
            }
            catch (Exception)
            {
                SCALE        = 30;
                POINTS_COUNT = 17;
            }
        }