当前位置:   article > 正文

osg::NodePath的push_back奇怪问题_nodepath.push_back

nodepath.push_back

osg::NodePath通过push_back添加元素后,但是在调试时发现items数为0,并且在使用时也发现里面有元素。

  1. Loader.cpp
  2. PagerLoader::PagerLoader(TerrainEngineNode* engine) :
  3. _checkpoint ( (osg::Timer_t)0 ),
  4. _mergesPerFrame( 0 ),
  5. _frameNumber ( 0 ),
  6. _numLODs ( 20u )
  7. {
  8. 189: _myNodePath.push_back( this );
  9. }

 

  1. DatabasePager.cpp
  2. void DatabasePager::requestNodeFile(const std::string& fileName, osg::NodePath& nodePath,
  3. float priority, const osg::FrameStamp* framestamp,
  4. osg::ref_ptr<osg::Referenced>& databaseRequestRef,
  5. const osg::Referenced* options)
  6. {
  7. 1429: osg::Group* group = nodePath.back()->asGroup();
  8. }

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/314997
推荐阅读
相关标签
  

闽ICP备14008679号