diff options
| author | Mirrorbot <mirrorbot@cogarr.net> | 2025-12-27 17:53:06 -0600 |
|---|---|---|
| committer | Mirrorbot <mirrorbot@cogarr.net> | 2025-12-27 17:53:06 -0600 |
| commit | 71e94ee161447b84c0eaabf6567f8fa62262cd3e (patch) | |
| tree | 391064cc6173a6fe75069af2fdc1978af12f623e /examples/Demo/CMainMenu.h | |
| download | irrlicht-71e94ee161447b84c0eaabf6567f8fa62262cd3e.tar.gz irrlicht-71e94ee161447b84c0eaabf6567f8fa62262cd3e.tar.bz2 irrlicht-71e94ee161447b84c0eaabf6567f8fa62262cd3e.zip | |
Diffstat (limited to 'examples/Demo/CMainMenu.h')
| -rw-r--r-- | examples/Demo/CMainMenu.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/examples/Demo/CMainMenu.h b/examples/Demo/CMainMenu.h new file mode 100644 index 0000000..06a0d04 --- /dev/null +++ b/examples/Demo/CMainMenu.h @@ -0,0 +1,48 @@ +// This is a Demo of the Irrlicht Engine (c) 2005 by N.Gebhardt.
+// This file is not documentated.
+
+#ifndef __C_MAIN_MENU_H_INCLUDED__
+#define __C_MAIN_MENU_H_INCLUDED__
+
+#include <irrlicht.h>
+
+using namespace irr;
+
+class CMainMenu : public IEventReceiver
+{
+public:
+
+ CMainMenu();
+
+ bool run(bool& outFullscreen, bool& outMusic, bool& outShadows,
+ bool& outAdditive, bool &outVSync, bool& outAA,
+ video::E_DRIVER_TYPE& outDriver);
+
+ virtual bool OnEvent(const SEvent& event);
+
+private:
+
+ void setTransparency();
+
+ gui::IGUIButton* startButton;
+ IrrlichtDevice *MenuDevice;
+ s32 selected;
+ bool start;
+ bool fullscreen;
+ bool music;
+ bool shadows;
+ bool additive;
+ bool transparent;
+ bool vsync;
+ bool aa;
+
+ scene::IAnimatedMesh* quakeLevel;
+ scene::ISceneNode* lightMapNode;
+ scene::ISceneNode* dynamicNode;
+
+ video::SColor SkinColor [ gui::EGDC_COUNT ];
+ void getOriginalSkinColor();
+};
+
+#endif
+
|
