void UpdateFrame(float elapsedTimeSec)
{
    UpdateFrameRate(elapsedTimeSec);

    Mouse::instance().update();
    Keyboard::instance().update();

    ProcessUserInput();
    UpdateCamera(elapsedTimeSec);
}
void FrameRateRegulator::DisplayFrameRate()
{
    if ( m_isDisplayed )
    {
        if ( UpdateFrameRate() )
        {
            //Update text string
            std::stringstream sstream;
            sstream << "FPS: " << m_fps;
            std::string str = sstream.str();
            m_fpsMessage.Update(str);
        }
        //Display m_FPS
        m_fpsMessage.Apply(0, 0);
    }
}