45 public Ogre::FrameListener,
46 public Ogre::RenderTargetListener
53 typedef std::map<Ogre::RenderTarget*, int> RenderTargetList;
54 RenderTargetList mRenderTargetList;
65 Ogre::Degree observerLatitude;
66 Ogre::Degree observerLongitude;
68 Ogre::Vector2 windDirection;
87 void RegisterViewport(
SViewPort* targetViewport);
91 void UnregisterViewport(
SViewPort* targetViewport);
95 void UnregisterCamera(Ogre::Camera* cam);
99 bool IsRegisteredViewport(
SViewPort* targetViewport);
103 bool IsRegisteredViewport(Ogre::Viewport* targetViewport);
107 void UnregisterAllViewports();
139 void SetEnable(
const bool& enableEnvironment);
147 void SetPaused(
const bool& pauseSimulation);
151 bool GetWaterEnable();
155 void SetWaterEnable(
const bool& enableWater);
163 void SetSkyEnable(
const bool& enableSky);
167 float GetWindSpeed();
171 void SetWindSpeed(
const float& newWindSpeed);
175 Ogre::Vector2 GetWindDirection();
179 void SetWindDirection(
const Ogre::Vector2& newWindDirection);
187 void SetHumidity(
const float& newHumidity);
191 float GetTimeSpeedFactor();
195 void SetTimeSpeedFactor(
const float& newTimeSpeedFactor);
203 void SetDateTime(
const SDateTime& newDateTime);
208 Ogre::Degree GetLongitude();
212 void SetLongitude(
const Ogre::Degree& newLongitude);
217 Ogre::Degree GetLatitude();
221 void SetLatitude(
const Ogre::Degree& newLatitude);
230 void _NotifyEnvironmentComponentRegisterRenderTarget(Ogre::Viewport* targetViewport);
232 void _NotifyEnvironmentComponentUnRegisterRenderTarget(Ogre::Viewport* targetViewport);
242 virtual bool frameStarted(
const Ogre::FrameEvent& evt);