blob: 7d667f97e4db38ffc52e515e3d12954cea223681 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef APP_H
#define APP_H
#include <SFML/Graphics.hpp>
#include "states.h"
#include "resourceManager.h"
#include "resourceIds.h"
class App {
static const sf::Time TIME_PER_FRAME;
private:
TextureManager textures_;
sf::RenderWindow window_;
StateStack stateStack_;
void processInput();
void render();
void update(sf::Time dt);
void registerStates();
public:
App();
void run();
};
#endif // APP_H
|