/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (XnaGame game = new XnaGame()) { game.Run(); } }
/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (var game = new XnaGame()) { game.Run(); } }
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; }
/// <summary> /// The main entry point for the application. /// </summary> private static void Main(string[] args) { using (var game = new XnaGame()) { game.Run(); } }
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; }