Im trying to get my FPS to display in the window title but my program is just not having it.
my FPS code
void showFPS()
{
// Measure speed
double currentTime = glfwGetTime();
nbFrames++;
if ( currentTime - lastTime >= 1.0 ){ // If last cout was more than 1 sec ago
cout << 1000.0/double(nbFrames) << endl;
nbFrames = 0;
lastTime += 1.0;
}
}
and i want it too go just after the Version here
window = glfwCreateWindow(640, 480, GAME_NAME " " VERSION " ", NULL, NULL);
but i cant just call the void i i have to convert it too a char ? or what ?