コード例 #1
0
ファイル: meshes.cs プロジェクト: sjk7/DX90SDK
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
            using (Meshes frm = new Meshes())
            {
                if (!frm.InitializeGraphics()) // Initialize Direct3D
                {
                    MessageBox.Show("Could not initialize Direct3D.  This tutorial will exit.");
                    return;
                }
                frm.Show();

                // While the form is still valid, render and process messages
                while (frm.Created)
                {
                    frm.Render();
                    Application.DoEvents();
                }
            }
        }
コード例 #2
0
ファイル: meshes.cs プロジェクト: JeremiahZhang/AKA
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
            using (Meshes frm = new Meshes())
            {
                if (!frm.InitializeGraphics()) // Initialize Direct3D
                {
                    MessageBox.Show("Could not initialize Direct3D.  This tutorial will exit.");
                    return;
                }
                frm.Show();

                // While the form is still valid, render and process messages
                while(frm.Created)
                {
                    frm.Render();
                    Application.DoEvents();
                }
            }
        }