Changeset View
Changeset View
Standalone View
Standalone View
src/lib/marble/layers/FogLayer.cpp
Show All 13 Lines | |||||
14 | #include "FogLayer.h" | 14 | #include "FogLayer.h" | ||
15 | 15 | | |||
16 | #include "GeoPainter.h" | 16 | #include "GeoPainter.h" | ||
17 | #include "ViewportParams.h" | 17 | #include "ViewportParams.h" | ||
18 | 18 | | |||
19 | namespace Marble | 19 | namespace Marble | ||
20 | { | 20 | { | ||
21 | 21 | | |||
22 | QStringList FogLayer::renderPosition() const | 22 | RenderPositions FogLayer::renderPositions() const | ||
23 | { | 23 | { | ||
24 | return QStringList() << "ATMOSPHERE"; | 24 | return AtmosphereRenderPosition; | ||
25 | } | 25 | } | ||
26 | 26 | | |||
27 | bool FogLayer::render( GeoPainter *painter, | 27 | bool FogLayer::render( GeoPainter *painter, | ||
28 | ViewportParams *viewParams, | 28 | ViewportParams *viewParams, | ||
29 | const QString &renderPos, | 29 | RenderPosition renderPos, | ||
30 | GeoSceneLayer *layer ) | 30 | GeoSceneLayer *layer ) | ||
31 | { | 31 | { | ||
32 | Q_UNUSED(renderPos) | 32 | Q_UNUSED(renderPos) | ||
33 | Q_UNUSED(layer) | 33 | Q_UNUSED(layer) | ||
34 | 34 | | |||
35 | // FIXME: The fog layer is really slow. That's why we defer it to | 35 | // FIXME: The fog layer is really slow. That's why we defer it to | ||
36 | // PrintQuality. Either cache on a pixmap - or maybe | 36 | // PrintQuality. Either cache on a pixmap - or maybe | ||
37 | // better: Add to GlobeScanlineTextureMapper. | 37 | // better: Add to GlobeScanlineTextureMapper. | ||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |