23
23
#ifndef EMBEROGRE_ENVIRONMENTSIMPLEENVIRONMENT_H
24
24
#define EMBEROGRE_ENVIRONMENTSIMPLEENVIRONMENT_H
26
#include "Environment.h"
26
#include "IEnvironmentProvider.h"
31
30
class SceneManager;
32
31
class RenderWindow;
39
namespace Environment {
42
A very simple sun which always will return the same direction.
44
class SimpleSun : public ISun
45
A very simple sun which always will return the same direction.
47
class SimpleSun: public ISun
47
50
SimpleSun(Ogre::SceneManager *sceneMgr);
59
A very simple sky which won't do anything currently.
61
class SimpleSky : public ISky
62
A very simple sky which won't do anything currently.
64
class SimpleSky: public ISky
68
A very simple fog which will always return a density of 1.0
70
class SimpleFog : public IFog
71
A very simple fog which will always return a density of 1.0
73
class SimpleFog: public IFog
73
76
SimpleFog(Ogre::SceneManager *sceneMgr);
84
@author Erik Hjortsberg <erik.hjortsberg@gmail.com>
86
A very simple environment which can be used as a fallback environment if a more advanced environment fails to load.
88
class SimpleEnvironment : public IEnvironmentProvider
85
@author Erik Hjortsberg <erik.hjortsberg@gmail.com>
87
A very simple environment which can be used as a fallback environment if a more advanced environment fails to load.
89
class SimpleEnvironment: public IEnvironmentProvider
91
SimpleEnvironment(Ogre::SceneManager *sceneMgr, Ogre::RenderWindow* window, Ogre::Camera& camera);
93
virtual ~SimpleEnvironment();
95
virtual void createEnvironment();
92
SimpleEnvironment(Ogre::SceneManager *sceneMgr, Ogre::RenderWindow* window, Ogre::Camera& camera);
94
virtual ~SimpleEnvironment();
96
virtual void createFirmament();
97
virtual void destroyFirmament();
99
void setWaterEnabled(bool enabled);
97
101
virtual ISun* getSun();
98
102
virtual ISky* getSky();
99
103
virtual IFog* getFog();
100
104
virtual IWater* getWater();
102
virtual void setTime(int hour, int minute, int second = 0);
106
virtual void setTime(int hour, int minute, int second = 0);
103
107
virtual void setTime(int seconds);
105
109
virtual void setTimeMultiplier(float multiplier);
107
111
virtual float getTimeMultiplier() const;
112
116
* @param latitudeDegrees The latitude, as degrees.
114
118
virtual void setWorldPosition(float longitudeDegrees, float latitudeDegrees);
117
121
Ogre::SceneManager *mSceneMgr;
118
122
Ogre::RenderWindow* mWindow;
119
123
Ogre::Camera& mCamera;