Inheritance: Microsoft.Xna.Framework.Game, IAppender
Exemplo n.º 1
0
        public Renderer(PlatformGame game)
        {
            this.game = game;

            graphics = new GraphicsDeviceManager(game);
            graphics.PreferMultiSampling            = false;
            graphics.SynchronizeWithVerticalRetrace = true;

            graphics.PreferredBackBufferWidth  = Config.ScreenResolutionWidth;
            graphics.PreferredBackBufferHeight = Config.ScreenResolutionHeight;

            // WHY: Debugger sucks when in fullscreen
            graphics.IsFullScreen = !Config.DebugModeEnabled;

            graphics.ApplyChanges();

            ViewArea = new Rectangle(0, 0, Config.ScreenResolutionWidth - 280, Config.ScreenResolutionHeight);
        }
Exemplo n.º 2
0
        public Renderer(PlatformGame game)
        {
            this.game = game;

            graphics = new GraphicsDeviceManager(game);
            graphics.PreferMultiSampling = false;
            graphics.SynchronizeWithVerticalRetrace = true;

            graphics.PreferredBackBufferWidth = Config.ScreenResolutionWidth;
            graphics.PreferredBackBufferHeight = Config.ScreenResolutionHeight;

            // WHY: Debugger sucks when in fullscreen
            graphics.IsFullScreen = !Config.DebugModeEnabled;

            graphics.ApplyChanges();

            ViewArea = new Rectangle(0, 0, Config.ScreenResolutionWidth - 280, Config.ScreenResolutionHeight);
        }