예제 #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (XnaGame game = new XnaGame())
     {
         game.Run();
     }
 }
예제 #2
0
파일: Program.cs 프로젝트: jwvdiermen/LD23
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (var game = new XnaGame())
     {
         game.Run();
     }
 }
예제 #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;
        }
예제 #4
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 private static void Main(string[] args)
 {
     using (var game = new XnaGame()) {
         game.Run();
     }
 }
예제 #5
0
 public void Run()
 {
     XnaGame.Run();
 }
예제 #6
0
 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;
 }