blob: 69ac808cd2b0e8159a4e2a8ec8325bfb3a21a04b (
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 GRAPHICS_HPP
# define GRAPHICS_HPP
#include <string>
#include <SDL2/SDL.h>
class Graphics
{
public:
Graphics(std::string t, int w, int h);
~Graphics();
void update();
bool isRunning();
private:
bool running;
std::string title;
int width;
int height;
SDL_Renderer *renderer;
SDL_Window *window;
void handleEvent();
};
#endif
|