DispatchDrawingEvents() public method

Updates the sfml control periodically
public DispatchDrawingEvents ( ) : void
return void
示例#1
0
文件: Program.cs 项目: fallahn/xygine
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new MainWindow());

            MainWindow mw = new MainWindow();
            mw.Show();
            while (mw.Visible)
            {
                Application.DoEvents();
                mw.DispatchDrawingEvents();
            }
        }
示例#2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new MainWindow());

            MainWindow mw = new MainWindow();

            mw.Show();
            while (mw.Visible)
            {
                Application.DoEvents();
                mw.DispatchDrawingEvents();
            }
        }