예제 #1
0
        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);
        }
예제 #2
0
파일: Game1.cs 프로젝트: bschwind/Physics
        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;
        }