[692] | 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-2005 The OGRE Team
|
---|
| 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 | /**
|
---|
| 16 | \file
|
---|
| 17 | SkyDome.cpp
|
---|
| 18 | \brief
|
---|
| 19 | Show's Ogre's skydome feature
|
---|
| 20 | */
|
---|
| 21 |
|
---|
| 22 | #include "SkyDome.h"
|
---|
| 23 |
|
---|
| 24 | #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
|
---|
| 25 | #define WIN32_LEAN_AND_MEAN
|
---|
| 26 | #include "windows.h"
|
---|
| 27 | #endif
|
---|
| 28 |
|
---|
| 29 | #ifdef __cplusplus
|
---|
| 30 | extern "C" {
|
---|
| 31 | #endif
|
---|
| 32 |
|
---|
| 33 | #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
|
---|
| 34 | INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
|
---|
| 35 | #else
|
---|
| 36 | int main(int argc, char *argv[])
|
---|
| 37 | #endif
|
---|
| 38 | {
|
---|
| 39 |
|
---|
| 40 | // Create application object
|
---|
| 41 | SkyDomeApplication app;
|
---|
| 42 |
|
---|
| 43 | try {
|
---|
| 44 | app.go();
|
---|
| 45 | } catch( Ogre::Exception& e ) {
|
---|
| 46 | #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
|
---|
| 47 | MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
|
---|
| 48 | #else
|
---|
| 49 | std::cerr << "An exception has occured: " <<
|
---|
| 50 | e.getFullDescription().c_str() << std::endl;
|
---|
| 51 | #endif
|
---|
| 52 | }
|
---|
| 53 |
|
---|
| 54 |
|
---|
| 55 | return 0;
|
---|
| 56 | }
|
---|
| 57 |
|
---|
| 58 | #ifdef __cplusplus
|
---|
| 59 | }
|
---|
| 60 | #endif
|
---|