Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/Samples/ParticleFX/src/ParticleFX.cpp @ 9

Last change on this file since 9 was 5, checked in by anonymous, 17 years ago

=hoffentlich gehts jetzt

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