diff options
Diffstat (limited to 'crawl-ref/source/rltiles/tool/tile_colour.h')
-rw-r--r-- | crawl-ref/source/rltiles/tool/tile_colour.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/crawl-ref/source/rltiles/tool/tile_colour.h b/crawl-ref/source/rltiles/tool/tile_colour.h new file mode 100644 index 0000000000..f994010bac --- /dev/null +++ b/crawl-ref/source/rltiles/tool/tile_colour.h @@ -0,0 +1,25 @@ +#ifndef TILE_COLOUR_H +#define TILE_COLOUR_H + +class tile_colour +{ +public: + tile_colour() {}; + tile_colour(unsigned char _r, unsigned char _g, unsigned char _b, + unsigned char _a) : r(_r), g(_g), b(_b), a(_a) {} + + bool operator==(const tile_colour &rhs) const; + bool operator!=(const tile_colour &rhs) const; + const tile_colour &operator=(const tile_colour &rhs); + + unsigned char r; + unsigned char g; + unsigned char b; + unsigned char a; + + static tile_colour background; + static tile_colour transparent; + static tile_colour black; +}; + +#endif |