#include <SDL/SDL.h>
#include <Moof/Backend.hh>
-#include <Moof/Dispatch.hh>
namespace Mf {
+
class Settings;
class Video;
~Video();
void setVideoMode(const int mode[3]);
- Attributes getAttributes() const;
+ Attributes attributes() const;
void resize(int width, int height);
bool iconify();
int getWidth() const;
int getHeight() const;
+ void makeCurrent() const;
+
static Video* current()
{
return gCurrentVideo;
}
- void makeCurrent() const;
-
- void setDispatch(Dispatch& dispatch);
-
private:
void init();
SDL_Surface* mContext;
unsigned mFlags;
Attributes mAttribs;
- Dispatch& mDispatch;
static Video* gCurrentVideo;
};