diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-03-18 18:18:15 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-03-18 18:18:15 +0100 |
| commit | b228349c5d3e93e8e58e96efeb332fdb58093f0f (patch) | |
| tree | c6c85e7feaf668c15b4f9a685c6955f7095135f6 /include | |
| download | 2048-b228349c5d3e93e8e58e96efeb332fdb58093f0f.tar.gz 2048-b228349c5d3e93e8e58e96efeb332fdb58093f0f.tar.bz2 2048-b228349c5d3e93e8e58e96efeb332fdb58093f0f.zip | |
Initial commit
Diffstat (limited to 'include')
| -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 |
