首页 > 其他 > 详细

osgearth2.8关于RectangleNodeEditor编辑点不可见的问题

时间:2018-10-09 13:12:11      阅读:282      评论:0      收藏:0      [点我收藏+]

static_cast<SphereDragger*>(_llDragger)->setColor(osg::Vec4(0,0,1,0));

 

Alpha写成了0

应该写成

 

static_cast<SphereDragger*>(_llDragger)->setColor(osg::Vec4(0,0,1,1));

 

osgEarth::Annotation::RectangleNodeEditor* rectEditor = new osgEarth::Annotation::RectangleNodeEditor(rect);
rectEditor->_llDragger->setColor(osg::Vec4(1, 0, 0, 1));
rectEditor->getPositionDragger()->setColor(osg::Vec4(0, 1, 0, 1));

 技术分享图片

 

osgearth2.8关于RectangleNodeEditor编辑点不可见的问题

原文:https://www.cnblogs.com/coolbear/p/9759665.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!