public MainWindow() { InitializeComponent(); GameViewPort game = gameViewPort; GameCore.ContentManager = game.Content; //GameCore.DeviceManager = game.Graphics; GameCore.TextureManager = Texture2DManager.Create(); GameCore.FontManager = new FontManager(); GameCore.SpriteBatch = game.SpriteBatch; }
static void Main() { using (var game = new MainGame()) { GameCore.ContentManager = game.Content; GameCore.DeviceManager = game.Graphics; GameCore.TextureManager = Texture2DManager.Create(); GameCore.FontManager = new FontManager(); GameCore.SpriteBatch = game.SpriteBatch; game.Run(); } }