Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef SFMLAPP_H
- #define SFMLAPP_H
- #include "SFML/Graphics/RenderWindow.hpp"
- #include "SFML/Window/Event.hpp"
- #include "SFML/System/Time.hpp"
- #include "Map.h"
- #include "MapGenerator.h"
- class SFMLApp {
- private:
- bool running;
- sf::RenderWindow* window;
- Map* currentMap;
- public:
- static const int WINDOW_WIDTH = 800;
- static const int WINDOW_HEIGHT = 600;
- SFMLApp();
- virtual ~SFMLApp();
- bool Init(const char * title = "SFML App");
- void HandleEvent(sf::Event* event);
- void Update(sf::Time elapsedTime);
- void Render();
- void Cleanup();
- int Execute();
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement