Ejemplo n.º 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";
        }
Ejemplo n.º 2
0
 public virtual void Draw(SpriteBatch sb, GameVideoSettings vSettings)
 {
 }
Ejemplo n.º 3
0
 public void Draw(SpriteBatch sb, GameVideoSettings vSettings)
 {
     currentScene.Draw(sb, vSettings);
 }