Пример #1
0
void LightManager::RewindTime(TimerTypes eTimer, float secRewind )
{
	if(eTimer == TIMER_ALL || eTimer == TIMER_SUN)
		m_sunTimer.Rewind(secRewind);

	if(eTimer == TIMER_ALL || eTimer == TIMER_LIGHTS)
	{
		std::for_each(m_lightTimers.begin(), m_lightTimers.end(), RewindTimer(secRewind));
		std::for_each(m_extraTimers.begin(), m_extraTimers.end(), RewindTimer(secRewind));
	}
}
Пример #2
0
void LightEnv::RewindTime( float secRewind )
{
	m_sunTimer.Rewind(secRewind);
	std::for_each(m_lightTimers.begin(), m_lightTimers.end(), RewindTimer(secRewind));
}