Esempio n. 1
0
        VertexBuffer vertexBuffer = null; // To store 3D objects!

        static void Main( )
        {
            AForm form = new AForm();  //Create an object from our class

            form.InitializeGraphics(); //Set up the device
            form.Show();

            while (form.Created)        //While the form hasn't been closed
            {
                form.Render();          //Update our game, and render to screen
                Application.DoEvents(); //Let the OS handle what it needs to
            }
        }
Esempio n. 2
0
        static void Main( )
        {
            AForm form = new AForm();  //Create an object from our class

            form.InitializeGraphics(); //Set up the device
            form.Show();

            while (form.Created)//While the form hasn't been closed
            {

                form.Render(); //Update our game, and render to screen
                Application.DoEvents(); //Let the OS handle what it needs to
            }
        }