public SkySlider() { graphics = new GraphicsDeviceManager(this); graphics.SynchronizeWithVerticalRetrace = true; graphics.PreferMultiSampling = true; Content.RootDirectory = "Content"; Config.ScreenWidth = 1280; Config.ScreenHeight = 720; Components.Add(new InputHandler(this)); gManager = new GUIManager(this, graphics); gManager.AddPanel(new MainGamePanel()); Components.Add(gManager); }
public Game1() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; this.Window.AllowUserResizing = true; IsMouseVisible = true; IsFixedTimeStep = true; guiManager = new GUIManager(this, graphics); guiManager.AddPanel(new DemoPanel(Vector2.Zero, Vector2.One)); Components.Add(guiManager); Components.Add(new InputHandler(this)); graphics.PreferredBackBufferWidth = Config.ScreenWidth; graphics.PreferredBackBufferHeight = Config.ScreenHeight; }