Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef PAINTER_H_INCLUDED
- #define PAINTER_H_INCLUDED
- #include <cstdio>
- #include <string>
- #include "../openglinc.h"
- #include "../linkedList.h"
- #include "../Core/game.h"
- #include "../Core/Graphics/renderer.h"
- #include "resman.h"
- namespace LIB {
- class Painter : public ResMan<sf::Texture> {
- public:
- Painter();
- virtual ~Painter();
- void paint(double ox, double oy, int w, int h, int mx=0, int my=0);
- bool init(CORE::Renderer* ren);
- void cleanup();
- virtual void unload(const std::string& path);
- virtual void unloadAll();
- protected:
- virtual sf::Texture* load(const std::string& path);
- private:
- //SDL_Renderer* a_renderer;
- CORE::Renderer* g_renderer;
- sf::Clock clock;
- sf::Texture* tex_witch;
- sf::Texture* tex_tiles;
- };
- }
- #endif // PAINTER_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement