EnvironmentFlatteningExample::EnvironmentFlatteningExample(Eegeo::Rendering::EnvironmentFlatteningService& environmentFlatteningService,
        Eegeo::Camera::GlobeCamera::GlobeCameraController& cameraController)
	:m_environmentFlatteningService(environmentFlatteningService)
	,m_lastToggle(MillisecondsSinceEpoch())
	,m_scaleUp(true)
	,m_initialEnvironmentScale(environmentFlatteningService.GetCurrentScale())
	,m_globeCameraStateRestorer(cameraController)
{
}
EnvironmentFlatteningExample::EnvironmentFlatteningExample(Eegeo::Rendering::EnvironmentFlatteningService& environmentFlatteningService,
                                                           Eegeo::Camera::GlobeCamera::GlobeCameraController* pCameraController,
                                                           Eegeo::Camera::GlobeCamera::GlobeCameraTouchController& cameraTouchController)
    : GlobeCameraExampleBase(pCameraController, cameraTouchController)
	, m_environmentFlatteningService(environmentFlatteningService)
	,m_lastToggle(MillisecondsSinceEpoch())
	,m_scaleUp(true)
	,m_initialEnvironmentScale(environmentFlatteningService.GetCurrentScale())
{
}