diff options
author | cutealien <cutealien@dfc29bdd-3216-0410-991c-e03cc46cb475> | 2020-01-03 19:05:16 +0000 |
---|---|---|
committer | cutealien <cutealien@dfc29bdd-3216-0410-991c-e03cc46cb475> | 2020-01-03 19:05:16 +0000 |
commit | 2ae2a551a6290f46734307bbfdafea4b1a2cf2ba (patch) | |
tree | ba2f0b468640e44899fed3df2d4cc58795f4a003 /examples/Demo/main.cpp | |
download | irrlicht-2ae2a551a6290f46734307bbfdafea4b1a2cf2ba.tar.xz |
Merging r5975 through r6036 from trunk to ogl-es branch.
GLES drivers adapted, but only did make compile-tests.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@6038 dfc29bdd-3216-0410-991c-e03cc46cb475
Diffstat (limited to 'examples/Demo/main.cpp')
-rw-r--r-- | examples/Demo/main.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/examples/Demo/main.cpp b/examples/Demo/main.cpp new file mode 100644 index 0000000..4cef6e3 --- /dev/null +++ b/examples/Demo/main.cpp @@ -0,0 +1,40 @@ +// 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 _MSC_VER
+
+#pragma comment(lib, "Irrlicht.lib")
+INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
+#else
+int main(int argc, char* argv[])
+#endif
+{
+ CMainMenu menu;
+
+ if (menu.run())
+ {
+ CDemo demo(menu.getFullscreen(),
+ menu.getMusic(),
+ menu.getShadows(),
+ menu.getAdditive(),
+ menu.getVSync(),
+ menu.getAntiAliasing(),
+ menu.getDriverType());
+ demo.run();
+ }
+
+ return 0;
+}
+
|