summaryrefslogtreecommitdiff
path: root/examples/Demo/main.cpp
diff options
context:
space:
mode:
authorMirrorbot <mirrorbot@cogarr.net>2025-12-27 17:53:06 -0600
committerMirrorbot <mirrorbot@cogarr.net>2025-12-27 17:53:06 -0600
commit71e94ee161447b84c0eaabf6567f8fa62262cd3e (patch)
tree391064cc6173a6fe75069af2fdc1978af12f623e /examples/Demo/main.cpp
downloadirrlicht-71e94ee161447b84c0eaabf6567f8fa62262cd3e.tar.gz
irrlicht-71e94ee161447b84c0eaabf6567f8fa62262cd3e.tar.bz2
irrlicht-71e94ee161447b84c0eaabf6567f8fa62262cd3e.zip
Inital commitHEADmaster
Diffstat (limited to 'examples/Demo/main.cpp')
-rw-r--r--examples/Demo/main.cpp49
1 files changed, 49 insertions, 0 deletions
diff --git a/examples/Demo/main.cpp b/examples/Demo/main.cpp
new file mode 100644
index 0000000..3d26999
--- /dev/null
+++ b/examples/Demo/main.cpp
@@ -0,0 +1,49 @@
+// This is a Demo of the Irrlicht Engine (c) 2005-2009 by N.Gebhardt.
+// This file is not documented.
+
+#include <irrlicht.h>
+#ifdef _IRR_WINDOWS_
+#include <windows.h>
+#endif
+
+#include <stdio.h>
+
+#include "CMainMenu.h"
+#include "CDemo.h"
+
+using namespace irr;
+
+#ifdef _WIN32
+
+#pragma comment(lib, "Irrlicht.lib")
+INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
+#else
+int main(int argc, char* argv[])
+#endif
+{
+ bool fullscreen = false;
+ bool music = true;
+ bool shadows = false;
+ bool additive = false;
+ bool vsync = false;
+ bool aa = false;
+
+#ifndef _IRR_WINDOWS_
+ video::E_DRIVER_TYPE driverType = video::EDT_OPENGL;
+#else
+ video::E_DRIVER_TYPE driverType = video::EDT_DIRECT3D9;
+#endif
+
+ CMainMenu menu;
+
+//#ifndef _DEBUG
+ if (menu.run(fullscreen, music, shadows, additive, vsync, aa, driverType))
+//#endif
+ {
+ CDemo demo(fullscreen, music, shadows, additive, vsync, aa, driverType);
+ demo.run();
+ }
+
+ return 0;
+}
+