Revision 183,
843 bytes
checked in by mattausch, 19 years ago
(diff) |
added iv-reader library, testing code, and resources
|
Rev | Line | |
---|
[183] | 1 | #include "IV.h"
|
---|
| 2 |
|
---|
| 3 | #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
|
---|
| 4 | #define WIN32_LEAN_AND_MEAN
|
---|
| 5 | #include "windows.h"
|
---|
| 6 | #endif
|
---|
| 7 |
|
---|
| 8 | #ifdef __cplusplus
|
---|
| 9 | extern "C" {
|
---|
| 10 | #endif
|
---|
| 11 |
|
---|
| 12 | #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
|
---|
| 13 | INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT)
|
---|
| 14 | #else
|
---|
| 15 | int main(int argc, char *argv[])
|
---|
| 16 | #endif
|
---|
| 17 | {
|
---|
| 18 | // Create application object
|
---|
| 19 | TerrainApplication app;
|
---|
| 20 |
|
---|
| 21 | SET_TERM_HANDLER;
|
---|
| 22 |
|
---|
| 23 | try {
|
---|
| 24 | app.go();
|
---|
| 25 | } catch(Ogre::Exception& e) {
|
---|
| 26 | #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
|
---|
| 27 | MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
|
---|
| 28 | #else
|
---|
| 29 | std::cerr << "An exception has occured: " <<
|
---|
| 30 | e.getFullDescription().c_str() << std::endl;
|
---|
| 31 | #endif
|
---|
| 32 | }
|
---|
| 33 |
|
---|
| 34 | return 0;
|
---|
| 35 | }
|
---|
| 36 |
|
---|
| 37 | #ifdef __cplusplus
|
---|
| 38 | }
|
---|
| 39 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.