Пример #1
0
        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;
        }
Пример #2
0
 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();
     }
 }