Changeset 12851 for OpenSceneGraph/trunk/examples/osgvnc/osgvnc.cpp
- Timestamp:
- 10/26/11 14:29:38 (19 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/examples/osgvnc/osgvnc.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgvnc/osgvnc.cpp
r12292 r12851 1 1 #include <osgWidget/VncClient> 2 2 3 #include <osgDB/Registry> 3 4 #include <osgViewer/Viewer> 4 5 #include <osgViewer/ViewerEventHandlers> … … 47 48 osg::ref_ptr<osg::Group> group = new osg::Group; 48 49 50 std::string password; 51 while(arguments.read("--password",password)) 52 { 53 } 54 49 55 for(int i=1; i<arguments.argc(); ++i) 50 56 { 51 57 if (!arguments.isOption(i)) 52 58 { 59 std::string hostname = arguments[i]; 60 61 if (!password.empty()) 62 { 63 if (!osgDB::Registry::instance()->getAuthenticationMap()) osgDB::Registry::instance()->setAuthenticationMap(new osgDB::AuthenticationMap); 64 osgDB::Registry::instance()->getAuthenticationMap()->addAuthenticationDetails(hostname, new osgDB::AuthenticationDetails("", password)); 65 } 66 53 67 osg::ref_ptr<osgWidget::VncClient> vncClient = new osgWidget::VncClient; 54 68 if (vncClient->connect(arguments[i], hints))
