20 #ifndef _LANDSCAPE_HPP_
21 #define _LANDSCAPE_HPP_
24 #include "VecMath.hpp"
25 #include "StelToneReproducer.hpp"
26 #include "StelProjector.hpp"
28 #include "StelFader.hpp"
29 #include "StelUtils.hpp"
30 #include "renderer/GenericVertexTypes.hpp"
31 #include "renderer/StelIndexBuffer.hpp"
32 #include "renderer/StelVertexBuffer.hpp"
33 #include "StelLocation.hpp"
47 virtual void load(
const QSettings& landscapeIni,
const QString& landscapeId) = 0;
55 void update(
double deltaTime)
57 landFader.update((
int)(deltaTime*1000));
58 fogFader.update((
int)(deltaTime*1000));
100 void loadCommon(
const QSettings& landscapeIni,
const QString& landscapeId);
106 const QString
getTexturePath(
const QString& basename,
const QString& landscapeId);
110 float nightBrightness;
123 int defaultBortleIndex;
124 int defaultFogSetting;
125 double defaultExtinctionCoefficient;
126 double defaultTemperature;
127 double defaultPressure;
137 float angleRotateZOffset;
146 virtual void load(
const QSettings& landscapeIni,
const QString& landscapeId);
148 void create(
bool _fullpath, QMap<QString, QString> param);
174 void generateGroundFanDisk(
class StelRenderer* renderer);
186 void generatePrecomputedSides(
class StelRenderer* renderer);
194 SideTexture* sideTexs;
195 bool texturesInitialized;
203 QString groundTexPath;
209 float decorAngleShift;
210 float groundAngleShift;
211 float groundAngleRotateZ;
227 QList<LOSSide> precomputedSides;
232 QMap<int, int> texToSide;
238 float previousFogHeight;
252 virtual void load(
const QSettings& landscapeIni,
const QString& landscapeId);
254 void create(
const QString name,
const QString& maptex,
float texturefov,
float angleRotateZ);
274 virtual void load(
const QSettings& landscapeIni,
const QString& landscapeId);
276 void create(
const QString name,
const QString& maptex,
float angleRotateZ);
286 #endif // _LANDSCAPE_HPP_