Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef SFMLAPP_H
- #define SFMLAPP_H
- #include "TextureManager.h"
- #include "Level.h"
- #include <SFML/Graphics.hpp>
- #include <SFML/Graphics/View.hpp>
- class SFMLApp {
- private:
- bool running;
- bool keys[4];
- sf::RenderWindow* window;
- sf::View viewport;
- Level* level;
- public:
- static const int WINDOW_WIDTH = 640;
- static const int WINDOW_HEIGHT = 480;
- static TextureManager* textureManager;
- SFMLApp();
- virtual ~SFMLApp();
- bool Init();
- void HandleEvent(sf::Event* event);
- void Update(sf::Time elapsed);
- void Render();
- void Cleanup();
- int Execute();
- void GenerateLevel();
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement