diff options
Diffstat (limited to 'graphics.hpp')
| -rw-r--r-- | graphics.hpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/graphics.hpp b/graphics.hpp new file mode 100644 index 0000000..75d273c --- /dev/null +++ b/graphics.hpp @@ -0,0 +1,23 @@ +#ifndef __GRAPHIC_H__ +#define __GRAPHIC_H__ + +#include <string> +#include <SDL2/SDL.h> + +class Graphics +{ + public: + Graphics(); + void run(); + ~Graphics(); + + private: + SDL_Renderer *renderer; + SDL_Window *window; + bool running; + + void event_handler(); + void error_quit(std::string msg); +}; + +#endif |
