Beispiel #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (XnaGame game = new XnaGame())
     {
         game.Run();
     }
 }
Beispiel #2
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (var game = new XnaGame())
     {
         game.Run();
     }
 }
Beispiel #3
0
        public void Run(Space firstSpace)
        {
            if (SS != null)
            {
                throw new Exception("Only one App can run at a time");
            }

            using (var game = new XnaGame(this, config))
                using (SS = game.InitializeSubsystems())
                {
                    NextSpace = firstSpace;
                    game.Run();
                }

            SS = null;
        }
Beispiel #4
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 private static void Main(string[] args)
 {
     using (var game = new XnaGame()) {
         game.Run();
     }
 }
Beispiel #5
0
 public void Run()
 {
     XnaGame.Run();
 }
 public void Start(IApi platformImplementation, Action update, Action render)
 {
     xnaGame = new XnaGame(update, render);
     xnaGame.Run();
     Graphics.BlendState = Microsoft.Xna.Framework.Graphics.BlendState.Opaque;
     Graphics.DepthStencilState = Microsoft.Xna.Framework.Graphics.DepthStencilState.Default;
     Graphics.RasterizerState = Microsoft.Xna.Framework.Graphics.RasterizerState.CullNone;
 }