|
本帖最后由 nick.JD 于 2012-4-4 22:50 编辑
错误 1 error C2664: “osgWidget::createExample”: 不能将参数 1 从“osg::ref_ptr<T> *”转换为“osgViewer::Viewer &”
主要是想使用智能指针
osg::ref_ptr<osgViewer::Viewer> viewer = new osgViewer::Viewer();
osgWidget::WindowManager* wm = new osgWidget::WindowManager(
viewer,
1280.0f,
1024.0f,
MASK_2D,
//osgWidget::WindowManager::WM_USE_RENDERBINS
osgWidget::WindowManager::WM_PICK_DEBUG
);
osgWidget::createExample(viewer,wm); |
|