summaryrefslogtreecommitdiff
path: root/src/palette.h
blob: 3fb176a1263e78e7a8fdac1f74dab1caa5e66ed2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef PALETTE_H
#define PALETTE_H

#include <stdint.h>

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