Changeset 86 for osgVisual/src/core/visual_core.cpp
- Timestamp:
- Jul 28, 2010, 3:36:28 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/src/core/visual_core.cpp
r75 r86 15 15 */ 16 16 17 17 18 #include <visual_core.h> 18 19 … … 22 23 { 23 24 OSG_NOTIFY( osg::ALWAYS ) << "visual_core instantiated." << std::endl; 25 #include <leakDetection.h> 26 } 27 28 visual_core::~visual_core(void) 29 { 30 // shut osgVisual down 31 shutdown(); 32 33 OSG_NOTIFY( osg::ALWAYS ) << "visual_core destroyed." << std::endl; 34 35 } 36 37 void visual_core::initialize() 38 { 39 OSG_NOTIFY( osg::ALWAYS ) << "Initialize visual_core..." << std::endl; 40 41 // Configure osg to use KdTrees 42 osgDB::Registry::instance()->setBuildKdTreesHint(osgDB::ReaderWriter::Options::BUILD_KDTREES); 24 43 25 44 // Setup pathes … … 34 53 35 54 // Test memory leak (todo) 36 //double* test = new double[1000];55 double* test = new double[1000]; 37 56 38 57 #ifdef USE_SPACENAVIGATOR … … 41 60 42 61 //osg::DisplaySettings::instance()->setNumOfDatabaseThreadsHint( 8 ); 43 }44 45 visual_core::~visual_core(void)46 {47 // shut osgVisual down48 shutdown();49 50 OSG_NOTIFY( osg::ALWAYS ) << "visual_core destroyed." << std::endl;51 52 }53 54 void visual_core::initialize()55 {56 OSG_NOTIFY( osg::ALWAYS ) << "Initialize visual_core..." << std::endl;57 58 // Load terrain59 //loadTerrain(arguments);60 62 61 63 // Show model … … 73 75 #ifdef USE_SKY_SILVERLINING 74 76 // Initialize sky 75 OSG_NOTIFY( osg::ALWAYS ) << "Using Sky without distortion." << std::endl;76 77 sky = new visual_skySilverLining( viewer ); 77 78 sky->init(distortedSceneGraph, rootNode); // Without distortedSceneGraph=NULL … … 156 157 } 157 158 #endif 159 160 // Destroy osgViewer 161 viewer = NULL; 158 162 } 159 163
Note: See TracChangeset
for help on using the changeset viewer.