mesh转nxs(ogrexmltoflower.exe+flour)

  • L6_514232
    了解作者
  • 15.3MB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-04 02:43
    上传日期
mesh转nxs ogrexmltoflower.exe flour编译教程(附带AntTweakBar)
mesh转nxs.rar
内容介绍
/** This file is part of Flour. Copyright (c) 2010 Robin Southern, http://www.nxogre.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "Flour.h" int main(int argc, char **argv) { try { NxOgre::Flour* flour = new NxOgre::Flour(); bool result = flour->fromCommandLine(argc, argv); if (result) std::cout << "OK.\n"; delete flour; } catch(const NxOgre::Exception& e) { std::cout << "Exception Called.\n"; } } NxOgre::Flour* NxOgre::Flour::sSingleton = 0; void registerTools(); namespace NxOgre { namespace N = NxOgre; namespace S = NxOgre::Strings; using NxOgre::String; Flour::Flour() : mWorld(0) { registerTools(); } Flour::~Flour() { } NxOgre::World* Flour::getWorld() { if (mWorld == 0) { NxOgre::WorldDescription description; mWorld = NxOgre::World::createWorld(description); } return mWorld; } std::string Flour::getVersion() const { return "Flour 0.4.8"; } void Flour::registerTool(const std::string& name, Tool* tool) { mTools.insert(name, tool); } void Flour::printTools() { std::cout << getVersion() << "\n\nTools available are:\n"; for (NxOgre::map_iterator<std::string, Tool*> it = mTools.elements(); it != it.end(); it++) std::cout << it.key() << "\n"; } bool Flour::fromCommandLine(int argc, char** argv) { Args args(argc, argv); // > flour if (args.tool.length() == 0) { printTools(); return false; } // > flour --help // > flour --h if (args.args.size() && NxOgre::Strings::matches_insensitive(args.tool, "help") || NxOgre::Strings::matches_insensitive(args.tool, "h")) { printTools(); return false; } Tool* tool = NxOgre::Maps::get_or_null<NxOgre::String, Tool>(mTools, args.tool); if(tool == 0) { puts << "Cannot understand '" << args.tool << "'."; return false; } return tool->process(args); } Args::Args(int argc, char** argv) { String working; for (int i = 1; i < argc;++i) { working.assign(argv[i]); args.push_back(working); if (i==1) { tool.assign(working); S::slice_after_last_of(tool, '-'); // chop off the any - characters at the beginning. S::lower(tool); continue; } // Anything without a - in front and no properties, flags defined yet is a file. if (working[0] != '-' && (flags.size() == 0 || properties.size() == 0)) { files.push_back(working); continue; } if (working[0] == '-') // a flag or a property. { if (S::index(working, '=') != String::npos) { working = working.substr(working.find_first_not_of('-')); S::split(working, properties, '='); } else { working = working.substr(working.find_first_not_of('-')); S::lower(working); flags.push_back(working); } } } } } // namespace
评论
    相关推荐
    • Lazer Defence使用Ogre渲染引擎-开源
      一个使用Ogre渲染引擎,Audiere和Kranf的XML解析器以C ++编写的小型街机游戏。 该游戏的灵感来自克隆尼防御游戏,您可以在其中用激光击落阿里安宇宙飞船。
    • Python & XML
      Python is an ideal language for manipulating XML, and this new volume gives you a solid foundation for using these two languages together. Complete with practical examples that highlight common ...
    • Ogre XML转Flower工具,压缩包中附Ruby安装程序
      将Mesh文件通过Ogre的工具转成XML后,通过本工具可以转换成Flower文件。 压缩包中先安装Ruby,之后再CMD中输入ruby ogrexmltoflower.rb triangle XXX.XML即可,其中XXX,XML是要转换的文件。
    • OGRE物理引擎OgreOde
      OGRE物理引擎
    • Ogre高级框架
      一个搭建好的Ogre游戏开发框架,结构良好,比OgreTutrial里的BaseApplication更适用于开发,学习和使用都很有价值。
    • Ogre引擎-教程
      本教程由本人自己整理,内容来自网络各个角落。 内部包含7个文档和一个问题 里面有描述游戏大概架构的文档以及OGER引擎的文档
    • rspec_junit_formatter:CI可以读取的RSpec结果
      您将获得一个XML文件rspec.xml其中包含您的结果。 您也可以将其与其他结合使用: rspec --format progress --format RspecJunitFormatter --out rspec.xml 与Bundler一起在项目中使用 如果您使用的是 ,请将其...
    • ogre打包学习资料
      ogre 打包 学习 资料ogre 打包 学习 资料ogre 打包 学习 资料ogre 打包 学习 资料ogre 打包 学习 资料ogre 打包 学习 资料ogre 打包 学习 资料ogre 打包 学习 资料
    • ogre引擎分析和cegui工具
      ogre引擎分析的一些电子书和一个cegui界面的可视化编辑工具。可以保存成xml文档类型,直接载入ogre中使用!希望对大家有用!~