コード例 #1
0
ファイル: Game1.cs プロジェクト: Osuology/code-diagram-test
        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";
        }
コード例 #2
0
 public virtual void Draw(SpriteBatch sb, GameVideoSettings vSettings)
 {
 }
コード例 #3
0
 public void Draw(SpriteBatch sb, GameVideoSettings vSettings)
 {
     currentScene.Draw(sb, vSettings);
 }