Hello, I want to create a viewer and add some camera etc. then I want to delete this viewer with everythin that I have added. later want to create it from the beginning. Here is my code,
 
// creating
osg::ref_ptr<osgProducer::Viewer> myViewer;
// build camera works as in OSG examples, it adds some cameras...
myViewer = new osgProducer::Viewer(BuildCameraConfig());
myViewer->setUpViewer();
m_Viewer->setSceneData(myNode.get());
 
.....
 
// now deleting...
myViewer->sync();
myViewer->cleanup_frame();
myViewer->sync();
myViewer = NULL;
 
....
 
// Now want to write the same code above for creating the viewe... but it is not working..
 
Is there any idea about completely deleting the viewer with its all cameras, render surfaces etc.



Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get Yahoo! Messenger with Voice
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to