From f314041b6b37bb9274d9fc79946858341befa0f2 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 8 Apr 2015 08:40:05 -0600 Subject: Added image goo + font support. --- src/palette.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/palette.h (limited to 'src/palette.h') diff --git a/src/palette.h b/src/palette.h new file mode 100644 index 0000000..3fb176a --- /dev/null +++ b/src/palette.h @@ -0,0 +1,22 @@ +#ifndef PALETTE_H +#define PALETTE_H + +#include + +class Palette +{ +public: + Palette(); + virtual ~Palette(); + + int32_t addColor( uint8_t iRed, uint8_t iGreen, uint8_t iBlue ); + int32_t getCount() const { return iCount; } + void getColor( int32_t iIdx, uint8_t &iRed, uint8_t &iGreen, + uint8_t &iBlue ); + +private: + int32_t iCount; + uint8_t *piChannels; +}; + +#endif -- cgit v1.2.3