Changeset 1056
- Timestamp:
- 01/29/08 02:17:58 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Carsten_PtrWork2/Source/WindowSystem/X/testParCullDraw.cpp
r998 r1056 37 37 OSG_USING_NAMESPACE 38 38 39 SimpleSceneManager *mgr;40 XWindow Ptrxwin;41 PassiveWindow Ptrpwin;42 43 Node Ptr scene = NullFC;39 SimpleSceneManager *mgr; 40 XWindowGlobalRefPtr xwin; 41 PassiveWindowGlobalRefPtr pwin; 42 43 NodeGlobalRefPtr scene; 44 44 45 45 // Threading stuff … … 366 366 scene = makeCoredNode<Group>(); 367 367 368 SimpleMaterial Ptr sm = SimpleMaterial::create();368 SimpleMaterialGlobalRefPtr sm = SimpleMaterial::create(); 369 369 370 370 sm->setDiffuse(Color3f(0,1,1)); … … 372 372 sm->setTransparency(.5); 373 373 374 GeometryPtr geo = makeTorusGeo( .5, 2, 16, 16 ); 374 375 GeometryGlobalRefPtr geo = makeTorusGeo( .5, 2, 16, 16 ); 375 376 geo->setMaterial(sm); 376 scene->addChild(makeNodeFor(geo)); 377 NodeGlobalRefPtr pGeoNode = makeNodeFor(geo); 378 scene->addChild(pGeoNode); 377 379 378 380 geo = makeTorusGeo( .3, .5, 16, 16 ); 379 381 geo->setMaterial(sm); 380 scene->addChild(makeNodeFor(geo)); 382 pGeoNode = makeNodeFor(geo); 383 scene->addChild(pGeoNode); 381 384 } 382 385
