main.cpp 729 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // This is a Demo of the Irrlicht Engine (c) 2005-2009 by N.Gebhardt.
  2. // This file is not documented.
  3. #include <irrlicht.h>
  4. #ifdef _IRR_WINDOWS_
  5. #include <windows.h>
  6. #endif
  7. #include <stdio.h>
  8. #include "CMainMenu.h"
  9. #include "CDemo.h"
  10. using namespace irr;
  11. #ifdef _MSC_VER
  12. #pragma comment(lib, "Irrlicht.lib")
  13. INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
  14. #else
  15. int main(int argc, char* argv[])
  16. #endif
  17. {
  18. CMainMenu menu;
  19. if (menu.run())
  20. {
  21. CDemo demo(menu.getFullscreen(),
  22. menu.getMusic(),
  23. menu.getShadows(),
  24. menu.getAdditive(),
  25. menu.getVSync(),
  26. menu.getAntiAliasing(),
  27. menu.getDriverType());
  28. demo.run();
  29. }
  30. return 0;
  31. }