Example #1
0
        public Game1()
        {
            vSettings = new GameVideoSettings();
            graphics  = new GraphicsDeviceManager(this);
            graphics.PreferredBackBufferWidth  = (int)vSettings.windowSize.X;
            graphics.PreferredBackBufferHeight = (int)vSettings.windowSize.Y;

            IsFixedTimeStep = false;
            graphics.SynchronizeWithVerticalRetrace = vSettings.vSync;
            TargetElapsedTime = vSettings.frameRate;

            this.IsMouseVisible = true;

            Content.RootDirectory = "Content";
        }
Example #2
0
 public virtual void Draw(SpriteBatch sb, GameVideoSettings vSettings)
 {
 }
Example #3
0
 public void Draw(SpriteBatch sb, GameVideoSettings vSettings)
 {
     currentScene.Draw(sb, vSettings);
 }