Exemple #1
0
        //[Test]
        public override void Test(asd.GraphicsDeviceType graphicsType)
        {
            var option = new asd.EngineOption
            {
                GraphicsDevice = graphicsType,
                IsFullScreen   = false
            };

            var initialized = asd.Engine.Initialize("Empty", 640, 480, option);

            int time = 0;

            while (asd.Engine.DoEvents())
            {
                asd.Engine.Update();

                if (time == 10)
                {
                    break;
                }
                time++;
            }

            asd.Engine.Terminate();
        }
Exemple #2
0
        //[Test]
        public override void Test(asd.GraphicsDeviceType graphicsType)
        {
            var option = new asd.EngineOption
            {
                GraphicsDevice = graphicsType,
                IsFullScreen   = false
            };

            bool closed = false;

            System.Windows.Forms.Form form = new System.Windows.Forms.Form();
            form.FormClosed += (object sender, System.Windows.Forms.FormClosedEventArgs e) =>
            {
                closed = true;
            };
            form.Show();


            // aceを初期化する。
            asd.Engine.InitializeByExternalWindow(form.Handle, new IntPtr(), form.Size.Width, form.Size.Height, new asd.EngineOption());

            int time = 0;

            // aceが進行可能かチェックする。
            while (asd.Engine.DoEvents())
            {
                System.Windows.Forms.Application.DoEvents();
                if (closed)
                {
                    break;
                }

                // aceを更新する。
                asd.Engine.Update();

                if (time == 10)
                {
                    break;
                }
                time++;
            }

            // aceを終了する。
            asd.Engine.Terminate();
        }
Exemple #3
0
 public abstract void Test(asd.GraphicsDeviceType graphicsType);