- Timestamp:
- 11/17/04 21:01:51 (9 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osglauncher/osglauncher.cpp
r3620 r3656 66 66 case(osgGA::GUIEventAdapter::MOVE): 67 67 { 68 osg::notify(osg::NOTICE)<<"MOVE "<<ea.getX()<<ea.getY()<<std::endl;68 //osg::notify(osg::NOTICE)<<"MOVE "<<ea.getX()<<ea.getY()<<std::endl; 69 69 std::string picked_name = pick(ea.getX(),ea.getY()); 70 70 highlight(picked_name); … … 73 73 case(osgGA::GUIEventAdapter::PUSH): 74 74 { 75 osg::notify(osg::NOTICE)<<"PUSH "<<ea.getX()<<ea.getY()<<std::endl;75 //osg::notify(osg::NOTICE)<<"PUSH "<<ea.getX()<<ea.getY()<<std::endl; 76 76 std::string picked_name = pick(ea.getX(),ea.getY()); 77 77 if (!picked_name.empty()) … … 123 123 124 124 // turn lighting off for the text and disable depth test to ensure its always ontop. 125 osg::Vec3 position( 150.0f,700.0f,0.0f);125 osg::Vec3 position(50.0f,510.0f,0.0f); 126 126 osg::Vec3 delta(0.0f,-60.0f,0.0f); 127 127 … … 348 348 osg::Vec3 vScale( 0.5f, 0.5f, 0.5f ); 349 349 osg::Vec3 vPivot( 0.0f, 0.0f, 0.0f ); 350 // end positioning and sizes 351 352 // loop to run through Xampleliste 350 351 // run through Xampleliste 353 352 int z = 1; 354 353 for (OP i = Xamplelist.begin() ; i != Xamplelist.end() ; ++i, ++z) … … 362 361 xGroup->addChild( transX ); 363 362 364 // nächster punkt um einen cube zu zeichnen363 // line feed 365 364 if(z < itemsInLine) 366 365 xnext += xjump; … … 369 368 xnext = xstart; 370 369 znext -= zjump; 371 z = 1;372 } 373 } // end loop torun through list370 z = 0; 371 } 372 } // end run through list 374 373 375 374 return xGroup; … … 414 413 lookAt.makeLookAt(osg::Vec3(0.0f, -4.0f, 0.0f), centerScope, osg::Vec3(0.0f, 0.0f, 1.0f)); 415 414 416 //viewer.setView(lookAt);415 //viewer.setView(lookAt); 417 416 418 417 while( !viewer.done() ) … … 426 425 427 426 // to be able to turn scene, place next call before viewer.update() 428 //viewer.setView(lookAt);427 viewer.setView(lookAt); 429 428 430 429
