main.cpp
来自「这个是一个开发osg的很好的工程建立向导」· C++ 代码 · 共 26 行
CPP
26 行
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This application is open source and may be redistributed and/or modified
* freely and without restriction, both in commericial and non commericial applications,
* as long as this copyright notice is maintained.
*
* This application is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include <osg/ref_ptr>
#include <osg/Group>
#include <osgViewer/Viewer>
#include <iostream>
int main(int argc, char** argv)
{
osg::ref_ptr<osg::Group> root = new osg::Group;
osgViewer::Viewer viewer;
viewer.setSceneData( root.get() );
return viewer.run();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?