public Main() { this.IsFixedTimeStep = false; graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; CurrentScene = new Scenes.Gameplay(); graphics.PreferredBackBufferHeight = 960; graphics.PreferredBackBufferWidth = 1600; graphics.PreparingDeviceSettings += new System.EventHandler <PreparingDeviceSettingsEventArgs>(graphics_PreparingDeviceSettings); Window.ClientSizeChanged += new System.EventHandler <System.EventArgs>(Window_ClientSizeChanged); Window.AllowUserResizing = true; this.IsMouseVisible = true; }
public Main() { Window.TextInput += HandleTextInput; this.IsFixedTimeStep = false; graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; //CurrentScene = new Scenes.Gameplay(); CurrentScene = new Scenes.CreateWorld(); graphics.PreferredBackBufferHeight = 1080; graphics.PreferredBackBufferWidth = 1920; graphics.PreparingDeviceSettings += new System.EventHandler <PreparingDeviceSettingsEventArgs>(graphics_PreparingDeviceSettings); // graphics.IsFullScreen = true; Window.ClientSizeChanged += new System.EventHandler <System.EventArgs>(Window_ClientSizeChanged); //Window.AllowUserResizing = true; Window.Position = new Point(); Window.IsBorderless = true; this.IsMouseVisible = true; graphics.ApplyChanges(); }