addStyle("preserveAspectRatio", "", &Image::setPreserveAspectRatio);
addStyle("slice", "", &Image::setSlice);
addStyle("slice-width", "", &Image::setSliceWidth);
+
+ osgDB::Registry* reg = osgDB::Registry::instance();
+ if( !reg->getReaderWriterForExtension("png") )
+ SG_LOG(SG_GL, SG_ALERT, "canvas::Image: Missing 'png' image reader");
}
//----------------------------------------------------------------------------
#include <simgear/canvas/CanvasSystemAdapter.hxx>
#include <simgear/scene/util/parse_color.hxx>
#include <osg/Version>
+#include <osgDB/Registry>
#include <osgText/Text>
namespace simgear
addStyle("font", "", &Text::setFont);
addStyle("alignment", "", &Text::setAlignment);
addStyle("text", "", &Text::setText, false);
+
+ osgDB::Registry* reg = osgDB::Registry::instance();
+ if( !reg->getReaderWriterForExtension("ttf") )
+ SG_LOG(SG_GL, SG_ALERT, "canvas::Text: Missing 'ttf' font reader");
}
//----------------------------------------------------------------------------