From b228349c5d3e93e8e58e96efeb332fdb58093f0f Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 18 Mar 2020 18:18:15 +0100 Subject: Initial commit --- include/graphics.hpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 include/graphics.hpp (limited to 'include') 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 +#include + +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 -- cgit