diff options
Diffstat (limited to 'src/palette.h')
-rw-r--r-- | src/palette.h | 22 |
1 files changed, 22 insertions, 0 deletions
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 @@ | |||
1 | #ifndef PALETTE_H | ||
2 | #define PALETTE_H | ||
3 | |||
4 | #include <stdint.h> | ||
5 | |||
6 | class Palette | ||
7 | { | ||
8 | public: | ||
9 | Palette(); | ||
10 | virtual ~Palette(); | ||
11 | |||
12 | int32_t addColor( uint8_t iRed, uint8_t iGreen, uint8_t iBlue ); | ||
13 | int32_t getCount() const { return iCount; } | ||
14 | void getColor( int32_t iIdx, uint8_t &iRed, uint8_t &iGreen, | ||
15 | uint8_t &iBlue ); | ||
16 | |||
17 | private: | ||
18 | int32_t iCount; | ||
19 | uint8_t *piChannels; | ||
20 | }; | ||
21 | |||
22 | #endif | ||