资源简介
OpenSceneGraph-3.4.0的安装包,用于搭建OpenSceneGraph平台的必要软件。
代码片段和文件信息
/* -*-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 commercial and non commercial 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
#include
#include
#include
#include
#include
#include
#include
#include
int main( int argc char **argv )
{
// use an ArgumentParser object to manage the program arguments.
osg::ArgumentParser arguments(&argcargv);
// set up the usage document in case we need to print out how to use this program.
arguments.getApplicationUsage()->setApplicationName(arguments.getApplicationName());
arguments.getApplicationUsage()->setDescription(arguments.getApplicationName()+“ is an application for collecting a set of separate files into a single archive file that can be later read in OSG applications..“);
arguments.getApplicationUsage()->setCommandLineUsage(arguments.getApplicationName()+“ [options] filename ...“);
// if user request help write it out to cout.
if (arguments.read(“-h“) || arguments.read(“--help“))
{
arguments.getApplicationUsage()->write(std::cout);
return 1;
}
std::string archiveFilename;
while (arguments.read(“-a“archiveFilename) || arguments.read(“--archive“archiveFilename))
{
}
bool insert = false;
while (arguments.read(“-i“) || arguments.read(“--insert“))
{
insert = true;
}
bool extract = false;
while (arguments.read(“-e“) || arguments.read(“--extract“))
{
extract = true;
}
bool list = false;
while (arguments.read(“-l“) || arguments.read(“--list“))
{
list = true;
}
typedef std::vector FileNameList;
FileNameList files;
for(int pos=1;pos {
if (!arguments.isOption(pos))
{
if (insert)
{
std::string filePath = osgDB::findDataFile(arguments[pos]);
osgDB::FileType fileType = osgDB::fileType(filePath);
if (fileType==osgDB::REGULAR_FILE)
{
files.push_back(arguments[pos]);
}
else if (fileType==osgDB::DIRECTORY)
{
osgDB::DirectoryContents directory = osgDB::getDirectoryContents(arguments[pos]);
osgDB::DirectoryContents::iterator it = directory.begin();
while( it != directory.end())
{
files.push_back(filePath + “/“ +
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-08-12 16:42 OpenSceneGraph-3.4.0\
文件 29848 2009-04-10 09:37 OpenSceneGraph-3.4.0\LICENSE.txt
目录 0 2015-08-12 16:42 OpenSceneGraph-3.4.0\PlatformSpecifics\
目录 0 2015-08-12 16:42 OpenSceneGraph-3.4.0\PlatformSpecifics\Android\
文件 219 2011-04-19 11:40 OpenSceneGraph-3.4.0\PlatformSpecifics\Android\Android.mk.master.in
文件 134 2011-04-19 11:40 OpenSceneGraph-3.4.0\PlatformSpecifics\Android\Android.mk.src.in
文件 85326 2014-11-28 16:20 OpenSceneGraph-3.4.0\PlatformSpecifics\Android\android.toolchain.cmake
文件 743 2012-04-19 09:50 OpenSceneGraph-3.4.0\PlatformSpecifics\Android\Android.mk.modules.in
文件 637 2011-04-19 11:40 OpenSceneGraph-3.4.0\PlatformSpecifics\Android\Android.mk.serializers.in
文件 421 2014-12-18 16:52 OpenSceneGraph-3.4.0\PlatformSpecifics\Android\Application.mk.master.in
文件 267 2013-02-13 16:03 OpenSceneGraph-3.4.0\PlatformSpecifics\Android\AndroidManifest.xm
目录 0 2015-08-12 16:42 OpenSceneGraph-3.4.0\PlatformSpecifics\Windows\
文件 636 2009-02-06 14:13 OpenSceneGraph-3.4.0\PlatformSpecifics\Windows\osgShell.bat
目录 0 2015-08-12 16:42 OpenSceneGraph-3.4.0\PlatformSpecifics\Windows\icons\
目录 0 2015-08-12 16:42 OpenSceneGraph-3.4.0\PlatformSpecifics\Windows\icons\src\
文件 870 2004-01-28 10:53 OpenSceneGraph-3.4.0\PlatformSpecifics\Windows\icons\src\osg16-32.png
文件 27897 2004-01-28 10:53 OpenSceneGraph-3.4.0\PlatformSpecifics\Windows\icons\src\osg.xcf
文件 3883 2004-01-28 10:53 OpenSceneGraph-3.4.0\PlatformSpecifics\Windows\icons\src\osg32.xcf
文件 4254 2004-01-28 10:53 OpenSceneGraph-3.4.0\PlatformSpecifics\Windows\icons\src\osg48-32.png
文件 1575 2004-01-28 10:53 OpenSceneGraph-3.4.0\PlatformSpecifics\Windows\icons\src\osg32-8.png
文件 2116 2004-01-28 10:53 OpenSceneGraph-3.4.0\PlatformSpecifics\Windows\icons\src\osg48-8.png
文件 314 2004-01-28 10:53 OpenSceneGraph-3.4.0\PlatformSpecifics\Windows\icons\src\osg16-4.png
文件 525 2004-01-28 10:53 OpenSceneGraph-3.4.0\PlatformSpecifics\Windows\icons\src\osg32-4.png
文件 745 2004-01-28 10:53 OpenSceneGraph-3.4.0\PlatformSpecifics\Windows\icons\src\osg16-8.png
文件 898 2004-01-28 10:53 OpenSceneGraph-3.4.0\PlatformSpecifics\Windows\icons\src\file.txt
文件 2302 2004-01-28 10:53 OpenSceneGraph-3.4.0\PlatformSpecifics\Windows\icons\src\osg32-32.png
文件 1883 2004-01-28 10:53 OpenSceneGraph-3.4.0\PlatformSpecifics\Windows\icons\src\osg16.xcf
文件 775 2004-01-28 10:53 OpenSceneGraph-3.4.0\PlatformSpecifics\Windows\icons\src\osg48-4.png
文件 302 2004-01-28 10:53 OpenSceneGraph-3.4.0\PlatformSpecifics\Windows\icons\src\make.bat
文件 6364 2004-01-28 10:53 OpenSceneGraph-3.4.0\PlatformSpecifics\Windows\icons\src\osg48.xcf
文件 37 2007-02-27 13:16 OpenSceneGraph-3.4.0\PlatformSpecifics\Windows\icons\osg_icon.rc
............此处省略3910个文件信息
- 上一篇:全国行政区划和高速公路矢量数据
- 下一篇:人脸识别资源库
相关资源
- osg爆炸仿真及火烟模拟
- OpenSceneGraph 3.0 Beginner’s Guide.pdf
- 点云数据读取 使用osg 附带点云数据
- osg显示点云
- OSG入门书籍之一:OpenSceneGraph Quick S
- osg3.0.0.rar
- 本人亲自编译的最全的64位osg3.4第三方
- 可以在osg3.4+osgEarth2.8中使用的64位VP
- osgi自定义控制台命令demo
- OSG与OSGB批量转化工具
- osg入门级教材
- OSGB模型3MX索引生成工具v0.1.exe
- CISSP官方學習指南英文第七版
- OSG官方入门教程包含程序代码
- OSG3.4.0读取FBX插件
- osgbobjdae格式数据相互转换工具
- osg地形绘制
- VPB的所有版本
- OSG-Cookbook.pdf一本学习OSG难得的好书
- OpenSceneGraph-OpenSceneGraph-3.4.0.rar
- OsgEarth2.8 使用高程和影像
- osg经典入门教程
- 用OSG实现的实时仿真的雷达波效果
- osg天空盒源程序
- OSG载入地形和模型文件
- OpenSceneGraph快速入门指导.pdf
- OpenSceneGraph三维渲染引擎设计与实践
- osg 海量数据处理
- OSG3.4.0第三方库VS2015 x64
- OSG 3dparty VS2015(x86
评论
共有 条评论