Show
Ignore:
Timestamp:
04/16/08 02:25:38 (8 months ago)
Author:
vossg
Message:

readded: cored node ptr

: background loader

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/Contrib/BackgroundLoader/testBackgroundLoader.cpp

    r790 r1169  
    2727// The SimpleSceneManager to manage simple applications 
    2828SimpleSceneManager *mgr; 
    29 GroupNodePtr gScene; 
     29GroupNodeRefPtr gScene; 
    3030 
    3131unsigned gNextModelIdx = 0; 
     
    6464   {  
    6565      std::cerr << "ERROR: path does not exist: " << dirname << std::endl;  
     66      gScene = NodePtr(NullFC); 
     67      osgExit(); 
    6668      exit(-1); 
    6769   } 
     
    9294    osgInit(argc,argv); 
    9395 
    94     gScene = GroupNodePtr::create(); 
     96    gScene = GroupNodeRefPtr::create(); 
    9597 
    9698    if (argc < 2) 
    9799    { 
    98100       std::cout << "Specify a directory to load models from." << std::endl; 
     101       gScene = NodePtr(NullFC); 
     102       osgExit(); 
    99103       exit(-1); 
    100104    } 
     
    109113 
    110114    // the connection between GLUT and OpenSG 
    111     GLUTWindowPtr gwin= GLUTWindow::create(); 
     115    GLUTWindowUnrecPtr gwin= GLUTWindow::create(); 
    112116    gwin->setGlutId(winid); 
    113117    gwin->init(); 
     
    182186        case 27: 
    183187        { 
     188            delete mgr; 
     189            gScene = NodePtr(NullFC); 
    184190            OSG::osgExit(); 
    185191            exit(0);