Line | |
---|
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-2006 Torus Knot Software Ltd |
---|
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 | Bezier.cpp |
---|
18 | \brief |
---|
19 | Shows OGRE's bezier patch feature |
---|
20 | */ |
---|
21 | |
---|
22 | #include "Bezier.h" |
---|
23 | |
---|
24 | #ifdef __cplusplus |
---|
25 | extern "C" { |
---|
26 | #endif |
---|
27 | |
---|
28 | #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 |
---|
29 | #define WIN32_LEAN_AND_MEAN |
---|
30 | #include "windows.h" |
---|
31 | |
---|
32 | INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT ) |
---|
33 | #else |
---|
34 | int main(int argc, char **argv) |
---|
35 | #endif |
---|
36 | { |
---|
37 | // Create application object |
---|
38 | BezierApplication app; |
---|
39 | |
---|
40 | try { |
---|
41 | app.go(); |
---|
42 | } catch( Ogre::Exception& e ) { |
---|
43 | #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 |
---|
44 | MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL ); |
---|
45 | #else |
---|
46 | std::cerr << "An exception has occured: " << e.getFullDescription(); |
---|
47 | #endif |
---|
48 | } |
---|
49 | |
---|
50 | |
---|
51 | return 0; |
---|
52 | } |
---|
53 | #ifdef __cplusplus |
---|
54 | } |
---|
55 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.