예제 #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Application app = new Application())
     {
         app.Run();
     }
 }
예제 #2
0
        public BubblePhysics(Application app)
        {
            this.app = app;
            graphics = new GraphicsDeviceManager(app);
            content = app.Content;

            app.IsFixedTimeStep = true;
            graphics.SynchronizeWithVerticalRetrace = true;
            graphics.PreferredBackBufferWidth = WIDTH;
            graphics.PreferredBackBufferHeight = HEIGHT;
            content.RootDirectory = "Content";
        }