From 540f646209f579ab1941b221ceeb44fab9d4322a Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Sun, 23 Aug 2015 04:54:51 +1000 Subject: [PATCH] Added color macros for buttons --- graphics/button.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/graphics/button.hpp b/graphics/button.hpp index 71b8e02..e4887a8 100644 --- a/graphics/button.hpp +++ b/graphics/button.hpp @@ -27,6 +27,11 @@ #include +constexpr SDL_Color COLOR_WHITE = {255, 255, 255, 255}; +constexpr SDL_Color COLOR_RED = {255, 0, 0, 255}; +constexpr SDL_Color COLOR_ORANGE = {255, 127, 0, 255}; +constexpr SDL_Color COLOR_BLUE = {0, 0, 255, 255}; + class Button { public: enum State {