Rev | Line | |
---|
[3] | 1 | /* |
---|
| 2 | ----------------------------------------------------------------------------- |
---|
| 3 | This source file is part of OGRE |
---|
| 4 | (Object-oriented Graphics Rendering Engine) |
---|
| 5 | For the latest info, see http://www.ogre3d.org/ |
---|
| 6 | |
---|
| 7 | Copyright (c) 2000-2006 Torus Knot Software Ltd |
---|
| 8 | Also see acknowledgements in Readme.html |
---|
| 9 | |
---|
| 10 | You may use this sample code for anything you like, it is not covered by the |
---|
| 11 | LGPL like the rest of the engine. |
---|
| 12 | ----------------------------------------------------------------------------- |
---|
| 13 | */ |
---|
| 14 | |
---|
| 15 | #include "SkeletalAnimation.h" |
---|
| 16 | |
---|
| 17 | #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 |
---|
| 18 | #define WIN32_LEAN_AND_MEAN |
---|
| 19 | #include "windows.h" |
---|
| 20 | #endif |
---|
| 21 | |
---|
| 22 | #ifdef __cplusplus |
---|
| 23 | extern "C" { |
---|
| 24 | #endif |
---|
| 25 | |
---|
| 26 | #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 |
---|
| 27 | INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT ) |
---|
| 28 | #else |
---|
| 29 | int main(int argc, char **argv) |
---|
| 30 | #endif |
---|
| 31 | { |
---|
| 32 | // Create application object |
---|
| 33 | SkeletalApplication app; |
---|
| 34 | |
---|
| 35 | try { |
---|
| 36 | app.go(); |
---|
| 37 | } catch( Exception& e ) { |
---|
| 38 | #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 |
---|
| 39 | MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL); |
---|
| 40 | #else |
---|
| 41 | std::cerr << "An exception has occured: " << e.getFullDescription(); |
---|
| 42 | #endif |
---|
| 43 | } |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | return 0; |
---|
| 47 | } |
---|
| 48 | |
---|
| 49 | #ifdef __cplusplus |
---|
| 50 | } |
---|
| 51 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.