X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FVideo.hh;h=8d8e6f3e16a6b4685746e43a64b17e2eae51d0da;hp=d20ce4e5ff58c1d2d0af7dcd0611edd6844195ba;hb=321f005b45580b8c2c14ddc577fb6ca7780a68c5;hpb=e0c0a3b5e7337cde55e520801d2e59e03dc97d9c diff --git a/src/Moof/Video.hh b/src/Moof/Video.hh index d20ce4e..8d8e6f3 100644 --- a/src/Moof/Video.hh +++ b/src/Moof/Video.hh @@ -18,11 +18,11 @@ #include #include -#include namespace Mf { + class Settings; class Video; @@ -78,7 +78,7 @@ public: ~Video(); void setVideoMode(const int mode[3]); - Attributes getAttributes() const; + Attributes attributes() const; void resize(int width, int height); bool iconify(); @@ -109,15 +109,13 @@ public: int getWidth() const; int getHeight() const; + void makeCurrent() const; + static Video* current() { return gCurrentVideo; } - void makeCurrent() const; - - void setDispatch(Dispatch& dispatch); - private: void init(); @@ -132,7 +130,6 @@ private: SDL_Surface* mContext; unsigned mFlags; Attributes mAttribs; - Dispatch& mDispatch; static Video* gCurrentVideo; };