Changeset 182 for osgVisual/trunk/src/sky_Silverlining
- Timestamp:
- Jan 7, 2011, 12:05:14 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/trunk/src/sky_Silverlining/visual_skySilverLining.cpp
r144 r182 19 19 using namespace osgVisual; 20 20 21 visual_skySilverLining::visual_skySilverLining(osgViewer::Viewer* viewer_, std::string configFileName )22 { 23 OSG_NOTIFY( osg::ALWAYS ) << "Initialize visual_skySilverlining..." << std::endl;21 visual_skySilverLining::visual_skySilverLining(osgViewer::Viewer* viewer_, std::string configFileName, bool& disabled) 22 { 23 OSG_NOTIFY( osg::ALWAYS ) << "Initialize visual_skySilverlining..."; 24 24 25 25 atmosphereInitialized = false; … … 35 35 cloudLayerSlots.back().slot_id = i; 36 36 } 37 38 // Check if the module is en- or diabled by XML configuration. 39 xmlDoc* tmpDoc; 40 xmlNode* config = util::getModuleXMLConfig( configFileName, "sky_silverlining", tmpDoc, disabled ); 41 if( disabled) 42 OSG_NOTIFY( osg::ALWAYS ) << "..disabled by XML configuration file." << std::endl; 43 else 44 OSG_NOTIFY( osg::ALWAYS ) << std::endl; 45 if(config) 46 xmlFreeDoc(tmpDoc); xmlCleanupParser(); 47 37 48 } 38 49
Note: See TracChangeset
for help on using the changeset viewer.