Show
Ignore:
Timestamp:
01/16/08 16:07:40 (1 year ago)
Author:
cneumann
Message:

changed: - factory functions return a TransitPtr? that can not be implicitly

converted to C Ptr. Should help with porting.

added: - GlobalRefPtr?, needed for cases where upon return from main

a RefPtr? goes out of scope (it would attempt to access the
FCFactory which is already shutdown at that point).

status: - vrml loader does not compile (needs porting to ref ptr)

  • tutorials compile, run and exit cleanly
  • multithreading and cluster are untested, yet
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Tutorials/10loading.cpp

    r835 r1039  
    9191 
    9292    // the connection between GLUT and OpenSG 
    93     GLUTWindowPtr gwin= GLUTWindow::create(); 
     93    GLUTWindowGlobalRefPtr gwin = GLUTWindow::create(); 
    9494    gwin->setGlutId(winid); 
    9595    gwin->init(); 
     
    9797    // load the scene 
    9898 
    99     NodePtr scene; 
     99    NodeGlobalRefPtr scene; 
    100100 
    101101    if(argc < 2) 
     
    122122            All scene file loading is handled via the SceneFileHandler. 
    123123        */ 
    124         scene = SceneFileHandler::the()->read(argv[1]); 
     124        scene = SceneFileHandler::the()->read(argv[1], NULL); 
    125125    } 
    126126 
    127127 
    128128    NodePtr found; 
    129  
    130129    NamedNodeFinder f; 
    131130 
     
    219218        case 27: 
    220219        { 
     220            delete mgr; 
     221         
    221222            OSG::osgExit(); 
    222223            exit(0);