source: OGRE/trunk/ogrenew/Samples/ParticleFX/src/ParticleFX.cpp @ 692

Revision 692, 1.3 KB checked in by mattausch, 19 years ago (diff)

adding ogre 1.2 and dependencies

RevLine 
[692]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-2005 The OGRE Team
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.