Zeplin.ZeplinGame.ChangeResolution C# (CSharp) Method

ChangeResolution() public method

public ChangeResolution ( int width, int height, bool fullscreen ) : void
width int
height int
fullscreen bool
return void
        public void ChangeResolution(int width, int height, bool fullscreen)
        {
            graphics.PreferredBackBufferWidth = width;
            graphics.PreferredBackBufferHeight = height;
            graphics.IsFullScreen = fullscreen;
            graphics.ApplyChanges();
            World.gameResolution = new Vector2(width, height);
        }