Example #1
0
        public void update(GameTime gameTime)
        {
            fps_txt.text = string.Format("FPS: {0}", FrameRateCounter.getFPS());
            fps_txt.x    = GameMain.gameWidth - fps_txt.getWidth();

            positionCursorMaterial();
        }
Example #2
0
 public FrameRateCounter(Game game)
     : base(game)
 {
     content    = new ContentManager(game.Services);
     thisSingle = this;
 }