aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/examples/Demo/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/irrlicht-1.8.1/examples/Demo/main.cpp')
-rw-r--r--src/others/irrlicht-1.8.1/examples/Demo/main.cpp49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/examples/Demo/main.cpp b/src/others/irrlicht-1.8.1/examples/Demo/main.cpp
new file mode 100644
index 0000000..3d26999
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/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
14using namespace irr;
15
16#ifdef _WIN32
17
18#pragma comment(lib, "Irrlicht.lib")
19INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
20#else
21int 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