public void update(GameTime gameTime) { fps_txt.text = string.Format("FPS: {0}", FrameRateCounter.getFPS()); fps_txt.x = GameMain.gameWidth - fps_txt.getWidth(); positionCursorMaterial(); }
public FrameRateCounter(Game game) : base(game) { content = new ContentManager(game.Services); thisSingle = this; }