summaryrefslogtreecommitdiff
path: root/src/palette.h
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2015-04-08 08:40:05 -0600
committerMike Buland <mike@xagasoft.com>2015-04-08 08:40:05 -0600
commitf314041b6b37bb9274d9fc79946858341befa0f2 (patch)
tree3ad385b2bdedeb367ae8b26341d7044c340dc153 /src/palette.h
parent518619603ab3c49b7fdfcf19c439c1a30668164f (diff)
downloadlost-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.h22
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
6class Palette
7{
8public:
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
17private:
18 int32_t iCount;
19 uint8_t *piChannels;
20};
21
22#endif