Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/fps/src/libraries/tools/fps/main.cpp @ 6819

Last change on this file since 6819 was 6819, checked in by landauf, 14 years ago

copy paste of all BZN bsp renderer files

  • Property svn:eol-style set to native
File size: 863 bytes
Line 
1//|||||||||||||||||||||||||||||||||||||||||||||||
2
3#include "DemoApp.hpp"
4
5//|||||||||||||||||||||||||||||||||||||||||||||||
6
7#if OGRE_PLATFORM == PLATFORM_WIN32 || OGRE_PLATFORM == OGRE_PLATFORM_WIN32
8#define WIN32_LEAN_AND_MEAN
9#include "windows.h"
10
11//|||||||||||||||||||||||||||||||||||||||||||||||
12
13INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT)
14#else
15int main(int argc, char **argv)
16#endif
17{
18        try
19    {
20                DemoApp demo;
21                demo.startDemo();
22    }
23        catch(std::exception& e)
24    {
25#if OGRE_PLATFORM == PLATFORM_WIN32 || OGRE_PLATFORM == OGRE_PLATFORM_WIN32
26        MessageBoxA(NULL, e.what(), "An exception has occurred!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
27#else
28        fprintf(stderr, "An exception has occurred: %s\n", e.getFullDescription().c_str());
29#endif
30    }
31
32    return 0;
33}
34
35//|||||||||||||||||||||||||||||||||||||||||||||||
Note: See TracBrowser for help on using the repository browser.