diff options
Diffstat (limited to 'include/graphics.hpp')
| -rw-r--r-- | include/graphics.hpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/graphics.hpp b/include/graphics.hpp new file mode 100644 index 0000000..69ac808 --- /dev/null +++ b/include/graphics.hpp @@ -0,0 +1,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 |
