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/02move.cpp

    r1035 r1039  
    2424 
    2525// The pointer to the transformation 
    26 TransformRefPtr trans; 
     26TransformGlobalRefPtr trans; 
    2727 
    2828 
     
    6565 
    6666    // the connection between GLUT and OpenSG 
    67     GLUTWindowRefPtr gwin= GLUTWindow::create(); 
     67    GLUTWindowGlobalRefPtr gwin = GLUTWindow::create(); 
    6868    gwin->setGlutId(winid); 
    6969    gwin->init(); 
     
    7171    // create the scene 
    7272 
    73     NodeRefPtr torus = makeTorus( .5, 2, 16, 32 ); 
     73    NodeGlobalRefPtr torus = makeTorus( .5, 2, 16, 32 ); 
    7474 
    7575    // create the transformation node 
     
    7777     
    7878    // 1. create the Node 
    79     NodeRefPtr scene = Node::create(); 
     79    NodeGlobalRefPtr scene = Node::create(); 
    8080     
    8181    // 2. create the core 
     
    142142        case 27:   
    143143        { 
     144            delete mgr; 
     145         
    144146            OSG::osgExit(); 
    145147            exit(0);