MetaSpace.h 553 B

123456789101112131415161718192021222324252627282930
  1. #ifndef METASPACE_H
  2. #define METASPACE_H
  3. #include <SDL/SDL.h>
  4. #undef main
  5. #include <SDL/SDL_gfxPrimitives.h>
  6. class MetaSpace
  7. {
  8. public:
  9. MetaSpace();
  10. virtual ~MetaSpace();
  11. virtual bool init(Uint32 w, Uint32 h);
  12. void clean();
  13. bool isInside(Uint32 y, Uint32 x);
  14. virtual void deform(Uint32 y, Uint32 x) = 0;
  15. virtual void draw() = 0;
  16. SDL_Surface* getSurf();
  17. protected:
  18. SDL_Surface* m_buff ;
  19. Uint32 m_w;
  20. Uint32 m_h;
  21. Uint32 m_tab[640][480] ;
  22. };
  23. #endif // METASPACE_H