nimo299 发表于 2015-1-13 15:14:48

请问有谁试过osgearth_controls这个例子?

这个例子中有两句话报错,如下:
void CreateControls(ControlCanvas* cs)
{
        osgEarth::Util::Controls::VBox* center = new VBox;
        center->setFrame(new RoundedFrame() );   /// 这句错误提示VBox没有 setFrame();这个函数
        center->getFrame()->setBackColor(1,1,1,0.5); ////这句   错误提示VBox没有 getFrame();这个函数

ago 发表于 2015-1-13 17:10:15

确实没有,可能是案例版本和库版本不一致

nimo299 发表于 2015-1-13 18:40:29

怎么改一下,可以让这个例子运行起来,获得同样的显示效果呢?

nimo299 发表于 2015-1-13 18:41:16

ago 发表于 2015-1-13 17:10
确实没有,可能是案例版本和库版本不一致

如何修改例子,并运行起来,获得同样的效果呢?
页: [1]
查看完整版本: 请问有谁试过osgearth_controls这个例子?