| Line |   | 
|---|
| 1 | #include "Orxonox.h" | 
|---|
| 2 |  | 
|---|
| 3 | #ifdef __cplusplus | 
|---|
| 4 | extern "C" { | 
|---|
| 5 | #endif | 
|---|
| 6 |  | 
|---|
| 7 | #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32  | 
|---|
| 8 | #define WIN32_LEAN_AND_MEAN  | 
|---|
| 9 | #include "windows.h"  | 
|---|
| 10 |         INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT)  | 
|---|
| 11 | #else  | 
|---|
| 12 |         int main(int argc, char **argv)  | 
|---|
| 13 | #endif  | 
|---|
| 14 |         { | 
|---|
| 15 |                 try { | 
|---|
| 16 |                         Orxonox myApp; | 
|---|
| 17 |  | 
|---|
| 18 |                         // ExampleApplication provides a go method, which starts the rendering. | 
|---|
| 19 |                         myApp.go(); | 
|---|
| 20 |                 } | 
|---|
| 21 |                 catch (Ogre::Exception& e) { | 
|---|
| 22 | #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32  | 
|---|
| 23 |                         MessageBoxA(NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL); | 
|---|
| 24 | #else | 
|---|
| 25 |                         std::cerr << "Exception:\n"; | 
|---|
| 26 |                         std::cerr << e.getFullDescription().c_str() << "\n"; | 
|---|
| 27 | #endif | 
|---|
| 28 |                         return 1; | 
|---|
| 29 |                 } | 
|---|
| 30 |  | 
|---|
| 31 |                 return 0; | 
|---|
| 32 |         } | 
|---|
| 33 |  | 
|---|
| 34 | #ifdef __cplusplus | 
|---|
| 35 | } | 
|---|
| 36 | #endif | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.