
OSG
pipixiaodan
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
OSG画折线程序函数总结
osgUtil::LineSegmentIntersector::Intersections Intersection数组 osgUtil::LineSegmentIntersector::Intersection computeIntersections(x,y,intersections) intersections得到所有相交的点 push_back()加进数组 pop_back()弹出数组原创 2015-04-16 15:13:34 · 639 阅读 · 0 评论 -
双面光照
//双面光照 osg::StateSet* state = pGeom->getOrCreateStateSet(); osg::LightModel* plm= new osg::LightModel; plm->setTwoSided(true); state->setAttributeAndModes(plm,osg::StateAttribute::ON);原创 2015-04-16 15:13:57 · 977 阅读 · 0 评论 -
设置线宽
osg::LineWidth* lw = new osg::LineWidth( 3.f ); state->setAttribute( lw );原创 2015-04-16 15:13:59 · 1005 阅读 · 0 评论 -
VECTOR FIND()
vector::iterator s=find(array.begin(),array.end(),50);第一个参数是array的起始地址,第二个参数是array的结束地址,第三个参数是需要查找的值 if( s !=array.end())//找到 cout else cout原创 2015-04-16 15:13:54 · 344 阅读 · 0 评论