zoukankan      html  css  js  c++  java
  • 【Ogre Beginner Guider】第一章 配置OGRE

    在使用Ogre 3D SDK之前我们需要配置IDE

    1. 新建一个空工程

    2. 在工程里新建一个文件,命名为main.cpp

    3. 添加一个main方法:

    int main (void)

    {

    return 0;

    }

    4. 在该文件开头部分包含上ExampleApplication.h文件:

    #include "OgreExampleApplication.h"

    5. 添加“你的Ogre SDK路径include”到你的项目include path(头文件路径)

    6. 添加“你的Ogre SDK路径boost_1_42”到你的项目include path(头文件路径)

    7. 添加“你的Ogre SDK路径boost_1_42lib”到你的项目lib path(库文件路径)

    8. 向main.cpp里添加一个类:

    class Example1 : public ExampleApplication

    {

    public:

    void createScene()

    {

    }

    };

    9. 把下面的代码添加到你的main函数里:

    Example1 app;

    app.go();

    10. 添加“你的Ogre SDK路径 libdebug”到你的项目lib path(库文件路径)

    11. 添加OgreMain_d.lib到需要的链接库(工程属性的Linker->Input)里

    12. 添加OIS_d.lib到需要的链接库(工程属性的Linker->Input)里

    13. 编译此项目

    14. 设置项目程序的工作空间(working directory)为“你的Ogre SDK路径indebug

     

    以上过程已验证可用。

     

    SDK中自带了一个解决方案(.sln),里面是一些例子,不过编译需要挺久的。

  • 相关阅读:
    将Vim改造为强大的IDE
    Ubuntu首次开启root用户
    ssh-keygen实现免密码登陆
    Ubuntu下配置samba服务器实现文件共享
    Ubuntu下Apache+php+mysql网站架设详解
    IIS支持PHP
    详解C/C++预处理器
    学C++之感悟
    return *this和return this的区别
    const 的全面总结
  • 原文地址:https://www.cnblogs.com/guotao/p/3369334.html
Copyright © 2011-2022 走看看