| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- // This is a Demo of the Irrlicht Engine (c) 2005-2008 by N.Gebhardt.
- // This file is not documented.
- #include <irrlicht.h>
- #ifdef _WIN32__
- #include "WindowsIncludes.h" // Prevent 'fd_set' : 'struct' type redefinition
- #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;
- core::stringw playerName;
- #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, playerName))
- //#endif
- {
- CDemo demo(fullscreen, music, shadows, additive, vsync, aa, driverType, playerName);
- demo.run();
- }
- return 0;
- }
|