Advertisement
Guest User

painter.h

a guest
Jun 4th, 2014
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.97 KB | None | 0 0
  1. #ifndef PAINTER_H_INCLUDED
  2. #define PAINTER_H_INCLUDED
  3.  
  4.  
  5. #include <cstdio>
  6. #include <string>
  7.  
  8. #include "../openglinc.h"
  9.  
  10. #include "../linkedList.h"
  11. #include "../Core/game.h"
  12. #include "../Core/Graphics/renderer.h"
  13. #include "resman.h"
  14.  
  15. namespace LIB {
  16.  
  17.     class Painter : public ResMan<sf::Texture> {
  18.         public:
  19.  
  20.             Painter();
  21.             virtual ~Painter();
  22.             void paint(double ox, double oy, int w, int h, int mx=0, int my=0);
  23.             bool init(CORE::Renderer* ren);
  24.             void cleanup();
  25.  
  26.             virtual void unload(const std::string& path);
  27.             virtual void unloadAll();
  28.  
  29.         protected:
  30.  
  31.             virtual sf::Texture* load(const std::string& path);
  32.  
  33.  
  34.         private:
  35.  
  36.             //SDL_Renderer* a_renderer;
  37.             CORE::Renderer* g_renderer;
  38.             sf::Clock clock;
  39.  
  40.             sf::Texture* tex_witch;
  41.             sf::Texture* tex_tiles;
  42.     };
  43.  
  44.  
  45. }
  46.  
  47.  
  48. #endif // PAINTER_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement