Changeset 13041 for OpenSceneGraph/trunk/src/osgAnimation/StatsHandler.cpp
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgAnimation/StatsHandler.cpp
r12292 r13041 89 89 _statsGraphGeode->setCullingActive(false); 90 90 } 91 91 92 92 void changeYposition(float y) 93 93 { … … 327 327 std::map<std::string, StatAction > _actions; 328 328 329 StatsTimeline() 329 StatsTimeline() 330 330 { 331 331 _statsHeight = 1024; … … 363 363 osg::ref_ptr<osgText::Text> timeLabel = new osgText::Text; 364 364 geode->addDrawable( timeLabel.get() ); 365 365 366 366 timeLabel->setColor(color); 367 367 timeLabel->setFont(font); … … 613 613 614 614 _camera->setViewport(0, 0, window->getTraits()->width, window->getTraits()->height); 615 615 616 616 _camera->setRenderOrder(osg::Camera::POST_RENDER, 10); 617 617 … … 649 649 _camera->addChild(_switch.get()); 650 650 _switch->addChild(_group.get()); 651 651 652 652 for (int i = 0; i < (int)finder._timelines.size(); i++) { 653 653 StatsTimeline* s = new StatsTimeline; … … 685 685 graph->addStatGraph(stats, stats, color, 1.0, name); 686 686 _graph = graph; 687 687 688 688 _group->addChild(_label.get()); 689 689 _group->addChild(_graph.get()); … … 709 709 _textLabel->setPosition(pos - osg::Vec3(0, characterSize,0)); 710 710 711 711 712 712 713 713 }
