blob: 2c7e21ea9a91bfe2186a702f2fed010ee19901a1 (
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
28
|
#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:
TextureFontManager textureFonts_;
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
|