}
for(int iLayer = 0 ; iLayer < thesky->get_cloud_layer_count(); iLayer++) {
- thesky->get_cloud_layer(iLayer)->get_layer3D()->clear();
+ thesky->get_cloud_layer(iLayer)
+ ->setCoverage(SGCloudLayer::SG_CLOUD_CLEAR);
+ thesky->get_cloud_layer(iLayer)->get_layer3D()->clear();
}
station += " 011000Z ";
# error This library requires C++
#endif
+#include <osg/Version>
+
+#define FG_OSG_VERSION \
+ ((OPENSCENEGRAPH_MAJOR_VERSION*10000)\
+ + (OPENSCENEGRAPH_MINOR_VERSION*1000) + OPENSCENEGRAPH_PATCH_VERSION)
// #define FANCY_FRAME_COUNTER
#ifdef FANCY_FRAME_COUNTER
#include <AIModel/AIManager.hxx>
#include <AIModel/AIBallistic.hxx>
+#include <Include/general.hxx>
#include "instrument_mgr.hxx"
#include "od_gauge.hxx"
#include "wxradar.hxx"
} else {
tpath = path;
}
-#if OSG_VERSION_MAJOR > 2 || (OSG_VERSION_MAJOR == 2 && OSG_VERSION_MINOR > 0)
+#if (FG_OSG_VERSION >= 21000)
osg::ref_ptr<osgDB::ReaderWriter::Options> fontOptions = new osgDB::ReaderWriter::Options("monochrome");
osg::ref_ptr<osgText::Font> font = osgText::readFontFile(tpath.c_str(), fontOptions.get());
#else
#include <osgViewer/Viewer>
#include <osgGA/MatrixManipulator>
+#include <Include/general.hxx>
#include "fg_os.hxx"
#include "fg_props.hxx"
#include "util.hxx"
#include "globals.hxx"
#include "renderer.hxx"
-#if ((2 <= OSG_VERSION_MAJOR) || \
- (1 == OSG_VERSION_MAJOR) && (9 == OSG_VERSION_MINOR) && \
- (8 <= OSG_VERSION_PATCH)) || \
- ((1 == OSG_VERSION_MAJOR) && (9 < OSG_VERSION_MINOR)) || \
- (1 < OSG_VERSION_MAJOR)
+#if (FG_OSG_VERSION >= 19008)
#define OSG_HAS_MOUSE_CURSOR_PATCH
#endif
#include <Instrumentation/instrument_mgr.hxx>
#include <Instrumentation/HUD/HUD.hxx>
+#include <Include/general.hxx>
#include "splash.hxx"
#include "renderer.hxx"
#include "main.hxx"
// XXX Make this go away when OSG 2.2 is released.
-#if ((2 <= OSG_VERSION_MAJOR) && (1 <= OSG_VERSION_MINOR) \
- && (4 <= OSG_VERSION_PATCH))
+#if (FG_OSG_VERSION >= 21004)
#define UPDATE_VISITOR_IN_VIEWER 1
#endif