在Ogre 1.7 (Cthuga)下编译Hydrax 0.5.1(修改过程)
来源:互联网 发布:斯维尔软件培训 编辑:程序博客网 时间:2024/05/17 07:09
Compiling Hydrax 0.5.1 with Ogre 1.7 (Cthuga)
Here's a quick guide to compile the new Hydrax with the new Ogre.
Note that the changes are backwards compatible, so they will work con 1.6 too
SimpleGrid.cpp line 305 change
Note that the changes are backwards compatible, so they will work con 1.6 too
SimpleGrid.cpp line 305 change
Code: Select all
mHydrax->getMesh()->getEntity()->getParentSceneNode()->getWorldTransforms(&mWorldMatrix);
with
Code: Select all
#if OGRE_VERSION_MAJOR >= 1 && OGRE_VERSION_MINOR >= 7
mWorldMatrix = mHydrax->getMesh()->getEntity()->getParentSceneNode()->_getFullTransform();
#else
mHydrax->getMesh()->getEntity()->getParentSceneNode()->getWorldTransforms(&mWorldMatrix);
#endif
Mesh.cpp line 414 change
Code: Select all
mEntity->getParentSceneNode()->getWorldTransforms(&mWorldMatrix);
with
Code: Select all
#if OGRE_VERSION_MAJOR >= 1 && OGRE_VERSION_MINOR >= 7
mWorldMatrix = mEntity->getParentSceneNode()->_getFullTransform();
#else
mEntity->getParentSceneNode()->getWorldTransforms(&mWorldMatrix);
#endif
a couple of lines after change
Code: Select all
mTmpSN->getWorldTransforms(&mWorldMatrix);
with
Code: Select all
#if OGRE_VERSION_MAJOR >= 1 && OGRE_VERSION_MINOR >= 7
mWorldMatrix = mTmpSN->_getFullTransform();
#else
mTmpSN->getWorldTransforms(&mWorldMatrix);
#endif
again in the same file, change
Code: Select all
mEntity->getParentSceneNode()->getWorldTransforms(&mWorldMatrix);
with
Code: Select all
#if OGRE_VERSION_MAJOR >= 1 && OGRE_VERSION_MINOR >= 7
mWorldMatrix = mEntity->getParentSceneNode()->_getFullTransform();
#else
mEntity->getParentSceneNode()->getWorldTransforms(&mWorldMatrix);
#endif
and
Code: Select all
mTmpSN->getWorldTransforms(&mWorldMatrix);
with
Code: Select all
#if OGRE_VERSION_MAJOR >= 1 && OGRE_VERSION_MINOR >= 7
mWorldMatrix = mTmpSN->_getFullTransform();
#else
mTmpSN->getWorldTransforms(&mWorldMatrix);
#endif
Last, in CfgFileManager.cpp line 305 change
Code: Select all
std::vector<Ogre::String> Cmpnts = Ogre::StringUtil::split(CfgFile.getSetting("Components"), "|");
to
Code: Select all
Ogre::StringVector Cmpnts = Ogre::StringUtil::split(CfgFile.getSetting("Components"), "|");
and change the parameter of the function _isStringInList from std::vector<Ogre::String> to Ogre::StringVector too, in both CfgFileManager.h and CfgFileManager.cpp
Attention 这里 有两处要修改,一次为 CfgFileManager.h,一次为 CfgFileManager.cpp 文件
- 在Ogre 1.7 (Cthuga)下编译Hydrax 0.5.1(修改过程)
- 编译Ogre 3D 1.7与Hydrax 0.5.1
- Compiling Hydrax 0.5.1 with Ogre 1.7
- Compiling Hydrax 0.5.1 with Ogre 1.7
- Win 7 x64 下,为OGRE编译 CEGUI 过程
- 简要记录下编译OGRE 1.9的过程
- OGRE学习笔记–Hydrax海洋插件
- ogre demo集成了caelum、hydrax
- ogre sdk 1.6.4在.net2005下编译
- ogre particle editor在ogre1.7.x下不能编译
- OGRE 1.7.1 在vs2008环境下的安装配置
- Ogre 1.8.1源代码编译和错误修改
- OGRE基础教程1(下)
- OGRE基础教程1(下)
- 用MinGW编译Ogre-1.7.1
- ogre 1.7.3编译
- Chrome在Visual Studio2005下编译过程(续)
- 在win7(32bit)下编译openssl完整过程
- 简历:突出意向惹人爱
- 指针
- 大学生规划职业宜趁早 认清专业确定方向 ——三人大学学习平台
- 大学应届毕业生IT业收入最高 Android技术最热门 ——三人大学
- 关于C#中conver.int32()与int计算后省略值
- 在Ogre 1.7 (Cthuga)下编译Hydrax 0.5.1(修改过程)
- Java/IO库的两个对称性和两个设计模式
- 安装SQL不成功的处理方法
- Java漫游-HashSet结构的存取
- servlet
- servlet2
- 运行命令大全
- 音乐与计算机
- C#中使用Split分割字符串后,空格处理方法