aboutsummaryrefslogtreecommitdiff
path: root/examples/Demo/main.cpp
blob: 4cef6e30cca8a702946e3e1ee258acb0395194d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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;
}