diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/irrlicht-1.8/examples/Demo/main.cpp | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/examples/Demo/main.cpp b/libraries/irrlicht-1.8/examples/Demo/main.cpp new file mode 100644 index 0000000..3d26999 --- /dev/null +++ b/libraries/irrlicht-1.8/examples/Demo/main.cpp | |||
@@ -0,0 +1,49 @@ | |||
1 | // This is a Demo of the Irrlicht Engine (c) 2005-2009 by N.Gebhardt. | ||
2 | // This file is not documented. | ||
3 | |||
4 | #include <irrlicht.h> | ||
5 | #ifdef _IRR_WINDOWS_ | ||
6 | #include <windows.h> | ||
7 | #endif | ||
8 | |||
9 | #include <stdio.h> | ||
10 | |||
11 | #include "CMainMenu.h" | ||
12 | #include "CDemo.h" | ||
13 | |||
14 | using namespace irr; | ||
15 | |||
16 | #ifdef _WIN32 | ||
17 | |||
18 | #pragma comment(lib, "Irrlicht.lib") | ||
19 | INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT ) | ||
20 | #else | ||
21 | int main(int argc, char* argv[]) | ||
22 | #endif | ||
23 | { | ||
24 | bool fullscreen = false; | ||
25 | bool music = true; | ||
26 | bool shadows = false; | ||
27 | bool additive = false; | ||
28 | bool vsync = false; | ||
29 | bool aa = false; | ||
30 | |||
31 | #ifndef _IRR_WINDOWS_ | ||
32 | video::E_DRIVER_TYPE driverType = video::EDT_OPENGL; | ||
33 | #else | ||
34 | video::E_DRIVER_TYPE driverType = video::EDT_DIRECT3D9; | ||
35 | #endif | ||
36 | |||
37 | CMainMenu menu; | ||
38 | |||
39 | //#ifndef _DEBUG | ||
40 | if (menu.run(fullscreen, music, shadows, additive, vsync, aa, driverType)) | ||
41 | //#endif | ||
42 | { | ||
43 | CDemo demo(fullscreen, music, shadows, additive, vsync, aa, driverType); | ||
44 | demo.run(); | ||
45 | } | ||
46 | |||
47 | return 0; | ||
48 | } | ||
49 | |||