Remake cursors, closes #219 and #237

This commit is contained in:
Eduardo Bart
2013-01-25 11:17:51 -02:00
parent 0a91fff82a
commit 3a47c4f2e1
23 changed files with 217 additions and 112 deletions

View File

@@ -33,6 +33,7 @@
#ifdef FW_SOUND
#include <framework/sound/soundmanager.h>
#include <framework/input/mouse.h>
#endif
GraphicalApplication g_app;
@@ -48,6 +49,8 @@ void GraphicalApplication::init(std::vector<std::string>& args)
g_window.setOnInputEvent(std::bind(&GraphicalApplication::inputEvent, this, std::placeholders::_1));
g_window.setOnClose(std::bind(&GraphicalApplication::close, this));
g_mouse.init();
// initialize ui
g_ui.init();
@@ -87,6 +90,8 @@ void GraphicalApplication::terminate()
g_sounds.terminate();
#endif
g_mouse.terminate();
// terminate graphics
m_foreground = nullptr;
g_graphics.terminate();