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