00001 #ifndef STARTUP_H
00002 #define STARTUP_H
00003
00004 #include "irrlicht.h"
00005
00007
00011 class StartUpParameters
00012 {
00013 public:
00014
00017 StartUpParameters();
00018
00024 StartUpParameters(bool fs,
00025 irr::video::E_DRIVER_TYPE dt,
00026 irr::core::dimension2d<irr::s32> dim,
00027 irr::u32 cbd);
00028
00030 ~StartUpParameters();
00031
00033 bool fullScreen;
00034
00036 irr::video::E_DRIVER_TYPE driverType;
00037
00039 irr::core::dimension2d<irr::s32> screen;
00040
00042 irr::u32 colorBitDepth;
00043
00045 irr::core::stringc error;
00046 };
00047
00049
00055 class StartUp : public irr::IEventReceiver
00056 {
00057 public:
00059 StartUp();
00061 ~StartUp();
00062
00067 bool OnEvent(irr::SEvent event);
00068
00071 StartUpParameters getStartUpParameters(void);
00072
00073 protected:
00074
00077 void loop(void);
00078
00079 private:
00080 StartUpParameters param;
00081 irr::IrrlichtDevice* device;
00082 irr::gui::IGUIImage* imgMenu;
00083 irr::gui::IGUIStaticText* fullScreenText;
00084 irr::gui::IGUIStaticText* resolutionText;
00085 irr::gui::IGUIStaticText* videDriverText;
00086 irr::gui::IGUIStaticText* colorBitDepthText;
00087 };
00088
00089 #endif // STARTUP_H