Changeset 1039 for branches/Carsten_PtrWork2/Tutorials/02move.cpp
- Timestamp:
- 01/16/08 16:07:40 (1 year ago)
- Files:
-
- branches/Carsten_PtrWork2/Tutorials/02move.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Carsten_PtrWork2/Tutorials/02move.cpp
r1035 r1039 24 24 25 25 // The pointer to the transformation 26 Transform RefPtr trans;26 TransformGlobalRefPtr trans; 27 27 28 28 … … 65 65 66 66 // the connection between GLUT and OpenSG 67 GLUTWindow RefPtr gwin= GLUTWindow::create();67 GLUTWindowGlobalRefPtr gwin = GLUTWindow::create(); 68 68 gwin->setGlutId(winid); 69 69 gwin->init(); … … 71 71 // create the scene 72 72 73 Node RefPtr torus = makeTorus( .5, 2, 16, 32 );73 NodeGlobalRefPtr torus = makeTorus( .5, 2, 16, 32 ); 74 74 75 75 // create the transformation node … … 77 77 78 78 // 1. create the Node 79 Node RefPtr scene = Node::create();79 NodeGlobalRefPtr scene = Node::create(); 80 80 81 81 // 2. create the core … … 142 142 case 27: 143 143 { 144 delete mgr; 145 144 146 OSG::osgExit(); 145 147 exit(0);
