Time for action — starting the project and configuring the IDE

As with any other library, we need to configure our IDE before we can use it with Ogre 3D.

  1. Create a new empty project.
  2. Create a new file for the code and name it main.cpp.
  3. Add the main function:
    int main (void)
    return 0;
  4. Include ExampleApplication.h at the top of the following source file:
    #include "Ogre\ExampleApplication.h":
  5. Add PathToYourOgreSDK\include\ to the include path of your project.
  6. Add PathToYourOgreSDK\boost_1_42 to the include path of your project.
  7. Add PathToYourOgreSDK\boost_1_42\lib to your library path.
  8. Add a new class to the main.cpp.
    class Example1 : public ExampleApplication
    void createScene()
  9. Add the following code at the top of your main function: ...

Get Ogre 3D 1.7 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.