Пример #1
0
// Draw the fps
void SokobanHUD::DrawFPS(void)
{
	//stringstream ss(Timer.GetFPS());
	//	string fps = "FPS : ";
	//	fps.insert(fps.end(), Timer.GetFPS());
	//	fps += Timer.GetFPS()

	//ss >> fps;

	static char strFrameRate[50] = {0};			// We will store the string here for the window title
	CTimer Timer;

	// Copy the frames per second into a string to display in the window title bar
	sprintf_s(strFrameRate, "Current Frames Per Second: %d", int(Timer.GetFPS()));

	// Set the window title bar to our string
	SetWindowText(g_window->hWnd, strFrameRate);


	//	glColor3ub(15,26,93);
	//	FontGL Font;
	//	Font.Print(4,24*5+2, fps.c_str());

}