Changeset 1056

Show
Ignore:
Timestamp:
01/29/08 02:17:58 (1 year ago)
Author:
vossg
Message:

fixed: use refptr

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/WindowSystem/X/testParCullDraw.cpp

    r998 r1056  
    3737OSG_USING_NAMESPACE 
    3838 
    39 SimpleSceneManager *mgr; 
    40 XWindowPtr          xwin; 
    41 PassiveWindowPtr    pwin; 
    42  
    43 NodePtr scene = NullFC
     39SimpleSceneManager        *mgr; 
     40XWindowGlobalRefPtr        xwin; 
     41PassiveWindowGlobalRefPtr  pwin; 
     42 
     43NodeGlobalRefPtr scene
    4444 
    4545// Threading stuff 
     
    366366        scene = makeCoredNode<Group>(); 
    367367         
    368         SimpleMaterialPtr sm = SimpleMaterial::create(); 
     368        SimpleMaterialGlobalRefPtr sm = SimpleMaterial::create(); 
    369369         
    370370        sm->setDiffuse(Color3f(0,1,1)); 
     
    372372        sm->setTransparency(.5); 
    373373        
    374         GeometryPtr geo = makeTorusGeo( .5, 2, 16, 16 ); 
     374 
     375        GeometryGlobalRefPtr geo = makeTorusGeo( .5, 2, 16, 16 ); 
    375376        geo->setMaterial(sm); 
    376         scene->addChild(makeNodeFor(geo)); 
     377        NodeGlobalRefPtr pGeoNode = makeNodeFor(geo); 
     378        scene->addChild(pGeoNode); 
    377379        
    378380        geo = makeTorusGeo( .3, .5, 16, 16 ); 
    379381        geo->setMaterial(sm); 
    380         scene->addChild(makeNodeFor(geo)); 
     382        pGeoNode = makeNodeFor(geo); 
     383        scene->addChild(pGeoNode); 
    381384    } 
    382385