#ifdef _WIN32
#include
#endif // _WIN32
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
int main()
{
osg::ref_ptr
osg::ref_ptr
osg::ref_ptr
osg::ref\_ptr<osg::Node> node1 = osgDB::readNodeFile("D:\\\\参考手册\\\\BIM\\\\osg\\\\build20190628.osgb");
camera1->addChild(node1);
camera1->setViewport(, , , );
camera1->setClearColor(osg::Vec4(0.0,0.0,0.0,0.0));
group1->addChild(node1.get());
group1->addChild(camera1.get());
viewer1->setSceneData(group1.get());
viewer1->setUpViewInWindow(, , , , );
viewer1->run();
}
手机扫一扫
移动阅读更方便
你可能感兴趣的文章