1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 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