~baltix/+junk/irrlicht-test

« back to all changes in this revision

Viewing changes to examples/Demo/CMainMenu.h

  • Committer: Mantas Kriaučiūnas
  • Date: 2011-07-18 13:06:25 UTC
  • Revision ID: mantas@akl.lt-20110718130625-c5pvifp61e7kj1ol
Included whole irrlicht SVN libraries to work around launchpad recipe issue with quilt, see https://answers.launchpad.net/launchpad/+question/165193

Show diffs side-by-side

added added

removed removed

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