HOW START OGRE APP - Ogre 3D Setup dialog

Get answers to all your basic programming questions. No Ogre questions, please!
ivador
Gnoblar
Posts: 12
Joined: Sun Oct 07, 2012 10:37 am

HOW START OGRE APP - Ogre 3D Setup dialog

Post by ivador »

Hello. I´m beginner with Ogre and momentally I´m making my first application. But I don´t know how I get a screen of Ogre 3D Setup dialog.
I wrote code in Visual Studio, set working directory, BUT how I execute it?

It´s really simple:

// This is the main DLL file.
Example1 app;
app.go();

#include "C:\OGRE\OgreSDK_vc10_v1-8-1\include";
#include "C:\OGRE\OgreSDK_vc10_v1-8-1\boost";
#include "C:\OGRE\OgreSDK_vc10_v1-8-1\boost\lib";
#include "C:\OGRE\OgreSDK_vc10_v1-8-1\lib\debug";
#include "OgreMain_d.lib";
#include "OIS_d.lib";
#include "stdafx.h"
#include "new_project.h"

class Example1
{
public:
void createScene();

};


int main (void){
return 0;
}


here is the tutorial :
http://www.packtpub.com/article/installation-ogre-3d
and here is the screen:
Image
User avatar
Kojack
OGRE Moderator
OGRE Moderator
Posts: 7157
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 538

Re: HOW START OGRE APP - Ogre 3D Setup dialog

Post by Kojack »

There's a heap of tutorials at http://www.ogre3d.org/tikiwiki/tiki-ind ... =Tutorials that may help.

There are several steps in the tutorial you linked to that you didn't do correctly. Your Example1 class isn't inheriting from ExampleApplication, you haven't included ExampleApplication.h and the Example1 app; and app.go(); lines belong inside of the main function, not at the top of the file.

Directories and lib files can't be used with #include.
ivador
Gnoblar
Posts: 12
Joined: Sun Oct 07, 2012 10:37 am

Re: HOW START OGRE APP - Ogre 3D Setup dialog

Post by ivador »

Thank you very much, I completely overlooked the tutorial
Setting Up An Application, so I'm going to do all from the beginning again