Пример #1
0
        protected override void Initialize()
        {
            batch           = new SpriteBatch(graphics.GraphicsDevice);
            graphicsManager = new TGraphicsManager(batch);

            //must be before gameContentManager.initialize so that frames get valid graphics device for creating panels
            gameContentManager.AddGraphics(graphics.GraphicsDevice);

            gameContentManager.InitializeAll();
            TInputManager.Init();

            //very important for calling loadcontent
            base.Initialize();
        }