00001 #ifndef MYTHGOOM
00002 #define MYTHGOOM
00003
00004 #include "../mainvisual.h"
00005 #include "../config.h"
00006
00007 using namespace std;
00008
00009 #ifdef SDL_SUPPORT
00010 #include <SDL.h>
00011
00012 class Goom : public VisualBase
00013 {
00014 public:
00015 Goom(long int winid);
00016 virtual ~Goom();
00017
00018 void resize(const QSize &size);
00019 bool process(VisualNode *node);
00020 bool draw(QPainter *p, const QColor &back);
00021 void handleKeyPress(const QString &action) {(void) action;}
00022
00023 private:
00024 QSize size;
00025
00026 SDL_Surface *surface;
00027
00028 unsigned int *buffer;
00029 int scalew, scaleh;
00030 };
00031
00032 #endif //SDL_SUPPORT
00033
00034 #endif //MYTHGOOM