Why ogre window do not provide graphics technology

resharper

04-03-2009 08:18:47

Hi to all.
I began write a tutorial ogre application. This tutorial contains following code
#include "ExampleApplication.h"

class TutorialApplication : public ExampleApplication
{
protected:
public:
TutorialApplication()
{
}

~TutorialApplication()
{
}
protected:
void createScene(void)
{
}
};

#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
#define WIN32_LEAN_AND_MEAN
#include "windows.h"

INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
#else
int main(int argc, char **argv)
#endif
{
// Create application object
TutorialApplication app;

try {
app.go();
} catch( Exception& e ) {
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
MessageBox( NULL, e.what(), "An exception has occurred!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
#else
fprintf(stderr, "An exception has occurred: %s\n",
e.what());
#endif
}

return 0;
}

I move resource.cfg file to the directory with my project (I use MS Visual Studio 2008) and change all paths from relational to absolute. After this I compile and run tutorial. On the screen appears ogre window which offers to select graphics technology (DirectX or OpenGL) in DropDownList and settings. But this DropDownList and control which contains settings are empty. Tutorial says:
though nothing other than a blank screen with a framerate box will show up until we add things later in the tutorial.

I see only ogre window, not the blank screen, and I only can close this window. What I doing wrong?

jmd

04-03-2009 21:29:34

To get DirectX and OpenGL in the dropdownlist, you need to have a plugins.cfg file and include the directx and opengl render plugins.
You should put your question in the Help section of the main Ogre forums as this isn't related to PCZ and you will get more answers over there.

JM