#include <boost/bind.hpp>
#include "Dispatch.hh"
-#include "Engine.hh"
+#include "Core.hh"
#include "Error.hh"
#include "Image.hh"
#include "Library.hh"
#include "Log.hh"
#include "OpenGL.hh"
#include "Texture.hh"
+#include "Video.hh"
namespace Mf {
mWrapT(GL_CLAMP),
mObject(0)
{
- // make sure we have a video
- VideoP video = engine.getVideo();
- ASSERT(video && "cannot load textures without a current video context");
+ // make sure we have a video context
+ //ASSERT(video && "cannot load textures without a current video context");
// we want to know when the GL context is recreated
- mDispatchHandler = engine.addHandler("video.newcontext",
+ mDispatchHandler = core.addHandler("video.newcontext",
boost::bind(&Impl::contextRecreated, this));
loadFromFile();