aboutsummaryrefslogtreecommitdiff
path: root/src/guiEngine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/guiEngine.cpp')
-rw-r--r--src/guiEngine.cpp40
1 files changed, 12 insertions, 28 deletions
diff --git a/src/guiEngine.cpp b/src/guiEngine.cpp
index 0abb24792..d4b98c1c9 100644
--- a/src/guiEngine.cpp
+++ b/src/guiEngine.cpp
@@ -46,14 +46,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
/******************************************************************************/
-/** TextDestGuiEngine */
-/******************************************************************************/
-TextDestGuiEngine::TextDestGuiEngine(GUIEngine* engine)
-{
- m_engine = engine;
-}
-
-/******************************************************************************/
void TextDestGuiEngine::gotText(const StringMap &fields)
{
m_engine->getScriptIface()->handleMainMenuButtons(fields);
@@ -66,14 +58,6 @@ void TextDestGuiEngine::gotText(const std::wstring &text)
}
/******************************************************************************/
-/** MenuTextureSource */
-/******************************************************************************/
-MenuTextureSource::MenuTextureSource(video::IVideoDriver *driver)
-{
- m_driver = driver;
-}
-
-/******************************************************************************/
MenuTextureSource::~MenuTextureSource()
{
for (std::set<std::string>::iterator it = m_to_delete.begin();
@@ -85,7 +69,7 @@ MenuTextureSource::~MenuTextureSource()
}
/******************************************************************************/
-video::ITexture* MenuTextureSource::getTexture(const std::string &name, u32 *id)
+video::ITexture *MenuTextureSource::getTexture(const std::string &name, u32 *id)
{
if(id)
*id = 0;
@@ -130,13 +114,13 @@ void MenuMusicFetcher::fetchSounds(const std::string &name,
/******************************************************************************/
/** GUIEngine */
/******************************************************************************/
-GUIEngine::GUIEngine( irr::IrrlichtDevice* dev,
- JoystickController *joystick,
- gui::IGUIElement* parent,
- IMenuManager *menumgr,
- scene::ISceneManager* smgr,
- MainMenuData* data,
- bool& kill) :
+GUIEngine::GUIEngine(irr::IrrlichtDevice *dev,
+ JoystickController *joystick,
+ gui::IGUIElement *parent,
+ IMenuManager *menumgr,
+ scene::ISceneManager *smgr,
+ MainMenuData *data,
+ bool &kill) :
m_device(dev),
m_parent(parent),
m_menumanager(menumgr),
@@ -388,7 +372,7 @@ void GUIEngine::cloudPostProcess()
}
/******************************************************************************/
-void GUIEngine::drawBackground(video::IVideoDriver* driver)
+void GUIEngine::drawBackground(video::IVideoDriver *driver)
{
v2u32 screensize = driver->getScreenSize();
@@ -430,7 +414,7 @@ void GUIEngine::drawBackground(video::IVideoDriver* driver)
}
/******************************************************************************/
-void GUIEngine::drawOverlay(video::IVideoDriver* driver)
+void GUIEngine::drawOverlay(video::IVideoDriver *driver)
{
v2u32 screensize = driver->getScreenSize();
@@ -449,7 +433,7 @@ void GUIEngine::drawOverlay(video::IVideoDriver* driver)
}
/******************************************************************************/
-void GUIEngine::drawHeader(video::IVideoDriver* driver)
+void GUIEngine::drawHeader(video::IVideoDriver *driver)
{
core::dimension2d<u32> screensize = driver->getScreenSize();
@@ -483,7 +467,7 @@ void GUIEngine::drawHeader(video::IVideoDriver* driver)
}
/******************************************************************************/
-void GUIEngine::drawFooter(video::IVideoDriver* driver)
+void GUIEngine::drawFooter(video::IVideoDriver *driver)
{
core::dimension2d<u32> screensize = driver->getScreenSize();