Exemple #1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            fSpriteBatch = new SpriteBatch(GraphicsDevice);

            // TODO: use this.Content to load your game content here

            fGraphics.PreferMultiSampling            = false;
            fGraphics.SynchronizeWithVerticalRetrace = false;
            fGraphics.HardwareModeSwitch             = false;
            fGraphics.ApplyChanges();


            fInputManager.InitMouse();
            fInputManager.CaptureMouse = false;


            //Window.ClientSizeChanged += (s, e) => UpdateScale();

            fContainer.LoadContent();
            foreach (var engine in fEngines)
            {
                engine.DoLoadContent();
            }

            base.LoadContent();
        }