Line | |
---|
1 | #include "IndirectTexturing.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 | SkyPlaneApplication app;
|
---|
20 |
|
---|
21 | try {
|
---|
22 | app.go();
|
---|
23 | } catch( Ogre::Exception& e ) {
|
---|
24 | #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
|
---|
25 | MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL );
|
---|
26 | #else
|
---|
27 | std::cerr << "An exception has occured: " <<
|
---|
28 | e.getFullDescription().c_str() << std::endl;
|
---|
29 | #endif
|
---|
30 | }
|
---|
31 |
|
---|
32 | return 0;
|
---|
33 | }
|
---|
34 |
|
---|
35 | #ifdef __cplusplus
|
---|
36 | }
|
---|
37 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.