Initialize() private method

private Initialize ( int width, int height ) : void
width int
height int
return void
        public override void BeforeInitialize()
        {
            base.BeforeInitialize();

            if (Game.GraphicsDeviceManager == null)
            {
                _window.Initialize(
                    GraphicsDeviceManager.DefaultBackBufferWidth,
                    GraphicsDeviceManager.DefaultBackBufferHeight);
            }
            else
            {
                var pp = Game.GraphicsDevice.PresentationParameters;
                _window.Initialize(pp);
            }
        }
Esempio n. 2
0
        public override void BeforeInitialize()
        {
            base.BeforeInitialize();

            var gdm = Game.graphicsDeviceManager;

            if (gdm == null)
            {
                _window.Initialize(GraphicsDeviceManager.DefaultBackBufferWidth, GraphicsDeviceManager.DefaultBackBufferHeight);
            }
            else
            {
                var pp = Game.GraphicsDevice.PresentationParameters;
                _window.Initialize(pp.BackBufferWidth, pp.BackBufferHeight);

                if (gdm.IsFullScreen)
                {
                    EnterFullScreen();
                }
            }
        }
        public override void BeforeInitialize()
        {
            _window.Initialize(Game.graphicsDeviceManager.PreferredBackBufferWidth, Game.graphicsDeviceManager.PreferredBackBufferHeight);

            base.BeforeInitialize();

            #if (WINDOWS && DIRECTX)
            if (Game.graphicsDeviceManager.IsFullScreen)
            {
                EnterFullScreen();
            }
            else
            {
                ExitFullScreen();
            }
#endif
        }
Esempio n. 4
0
        public override void BeforeInitialize()
        {
            var gdm = Game.graphicsDeviceManager;

            _window.Initialize(gdm.PreferredBackBufferWidth, gdm.PreferredBackBufferHeight);

            base.BeforeInitialize();

            if (gdm.IsFullScreen)
            {
                EnterFullScreen();
            }
            else
            {
                ExitFullScreen();
            }
        }
        public override void BeforeInitialize()
        {
            _window.Initialize(Game.graphicsDeviceManager.PreferredBackBufferWidth, Game.graphicsDeviceManager.PreferredBackBufferHeight);

            base.BeforeInitialize();
        }
Esempio n. 6
0
        public override void BeforeInitialize()
        {
            _window.Initialize();

            base.BeforeInitialize();
        }