osgViewer Viewer viewer osg Group root new osg Group root- addChild vi

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
......
osgViewer::Viewer viewer;
osg::Group* root = new osg::Group;
...
root->addChild( .... )
viewer.setSceneData( root );
...
root->addChild(notebook);
return viewer.run();
....