**************************************************************************/
#include <Moof/Aabb.hh>
-#include <Moof/Core.hh>
#include <Moof/Log.hh>
#include <Moof/OpenGL.hh>
#include <Moof/Video.hh>
mBar2(Mf::Texture("StatusBars"), 2),
mFont("Font")
{
- ASSERT(Mf::video &&
- "no current video context from which to get dimensions");
- resize(Mf::video->getWidth(), Mf::video->getHeight());
+ Mf::Video* video = Mf::Video::current();
+ ASSERT(video && "a current video context should be set");
+ resize(video->getWidth(), video->getHeight());
}
if (event.key.keysym.sym == SDLK_h)
{
// don't want the hud anymore
- Mf::core.pop(this);
+ parent().removeChild(this);
+
Mf::logWarning("okay bye bye hud");
return true;
}