From ce65a7e1f682fa31934c05623c41ea25d9b71ce7 Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 19 Mar 2020 11:28:30 +0100 Subject: Added colors --- include/graphics.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/graphics.hpp') diff --git a/include/graphics.hpp b/include/graphics.hpp index 44f631c..ccebdae 100644 --- a/include/graphics.hpp +++ b/include/graphics.hpp @@ -3,6 +3,10 @@ #include #include +#include +#include +#include +#include #include #include #include "game.hpp" @@ -28,8 +32,12 @@ class Graphics SDL_Renderer *renderer; SDL_Window *window; TTF_Font *font; + std::vector< std::pair > numberTexBuf; + std::map< int, SDL_Color > palette; void handleEvent(); + SDL_Texture *addNumberTex(int n); + SDL_Texture *getNumberTex(int n); void error(); }; -- cgit