O'Reilly logo

Ogre 3D 1.7 by Felix Kerger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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
    {
    public:
    void createScene()
    {
    }
    };
    
  9. Add the following code at the top of your main function: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required