//------------------------------------------------------------------------------
// Lamp : Open source game middleware
// Copyright (C) 2004  Junpei Ohtani ( Email : junpee@users.sourceforge.jp )
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
//------------------------------------------------------------------------------

/** @file
 * パフォーマンスヘッダ
 * @author Junpee
 */

#ifndef PERFORMANCE_H_
#define PERFORMANCE_H_

//------------------------------------------------------------------------------
/**
 * パフォーマンス
 */
class Performance{
public:
	//--------------------------------------------------------------------------
	// FPS
	//--------------------------------------------------------------------------
	/**
	 * ゲームFPSの設定
	 * @param gameFPS ゲームFPS
	 */
	static void setGameFPS(float gameFPS){ gameFPS_ = gameFPS; }

	/**
	 * ゲームFPSの取得
	 * @return ゲームFPS
	 */
	static float getGameFPS(){ return gameFPS_; }

	//--------------------------------------------------------------------------
	/**
	 * 描画FPSの設定
	 * @param drawFPS 描画FPS
	 */
	static void setDrawFPS(float drawFPS){ drawFPS_ = drawFPS; }

	/**
	 * 描画FPSの取得
	 * @return 描画FPS
	 */
	static float getDrawFPS(){ return drawFPS_; }

	//--------------------------------------------------------------------------
	// 文字列
	//--------------------------------------------------------------------------
	/**
	 * FPS文字列の取得
	 * @return FPS文字列
	 */
	static String getFPSString();

private:
	//--------------------------------------------------------------------------
	// コンストラクタの隠蔽
	Performance();

	// ゲームFPS
	static float gameFPS_;
	// 描画FPS
	static float drawFPS_;

};

//------------------------------------------------------------------------------
#endif // End of PERFORMANCE_H_
//------------------------------------------------------------------------------
