diff options
| author | Mike Buland <mike@xagasoft.com> | 2015-04-08 08:40:05 -0600 |
|---|---|---|
| committer | Mike Buland <mike@xagasoft.com> | 2015-04-08 08:40:05 -0600 |
| commit | f314041b6b37bb9274d9fc79946858341befa0f2 (patch) | |
| tree | 3ad385b2bdedeb367ae8b26341d7044c340dc153 /src/palette.h | |
| parent | 518619603ab3c49b7fdfcf19c439c1a30668164f (diff) | |
| download | lost-f314041b6b37bb9274d9fc79946858341befa0f2.tar.gz lost-f314041b6b37bb9274d9fc79946858341befa0f2.tar.bz2 lost-f314041b6b37bb9274d9fc79946858341befa0f2.tar.xz lost-f314041b6b37bb9274d9fc79946858341befa0f2.zip | |
Added image goo + font support.
Diffstat (limited to '')
| -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 | ||
