CMainMenu.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // This is a Demo of the Irrlicht Engine (c) 2005 by N.Gebhardt.
  2. // This file is not documentated.
  3. #ifndef __C_MAIN_MENU_H_INCLUDED__
  4. #define __C_MAIN_MENU_H_INCLUDED__
  5. #include <irrlicht.h>
  6. using namespace irr;
  7. class CMainMenu : public IEventReceiver
  8. {
  9. public:
  10. CMainMenu();
  11. bool run();
  12. bool getFullscreen() const { return fullscreen; }
  13. bool getMusic() const { return music; }
  14. bool getShadows() const { return shadows; }
  15. bool getAdditive() const { return additive; }
  16. bool getVSync() const { return vsync; }
  17. bool getAntiAliasing() const { return aa; }
  18. video::E_DRIVER_TYPE getDriverType() const { return driverType; }
  19. virtual bool OnEvent(const SEvent& event);
  20. private:
  21. void setTransparency();
  22. gui::IGUIButton* startButton;
  23. IrrlichtDevice *MenuDevice;
  24. s32 selected;
  25. bool start;
  26. bool fullscreen;
  27. bool music;
  28. bool shadows;
  29. bool additive;
  30. bool transparent;
  31. bool vsync;
  32. bool aa;
  33. video::E_DRIVER_TYPE driverType;
  34. scene::IAnimatedMesh* quakeLevel;
  35. scene::ISceneNode* lightMapNode;
  36. scene::ISceneNode* dynamicNode;
  37. video::SColor SkinColor [ gui::EGDC_COUNT ];
  38. void getOriginalSkinColor();
  39. };
  40. #endif