/[projet1]/public/pc/tools/osdk/main/pictconv/sources/shifter_color.h
Defence Force logotype

Contents of /public/pc/tools/osdk/main/pictconv/sources/shifter_color.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 208 - (show annotations)
Sat Jan 23 15:55:45 2010 UTC (9 years, 9 months ago) by dbug
File MIME type: text/plain
File size: 724 byte(s)
Updated the OSDK codebase with the latest changed, which mostly add Atari ST support.
1 #ifndef SHIFTER_COLOR_H
2 #define SHIFTER_COLOR_H
3
4 class RgbColor;
5
6 class ShifterColor
7 {
8 public:
9 ShifterColor();
10 ShifterColor(int r,int g,int b);
11 ShifterColor(RgbColor rgb);
12
13 unsigned short GetValue() const { return m_color; }
14 unsigned short GetBigEndianValue() const;
15 RgbColor GetRgb() const;
16
17 static unsigned char ValueToSte(unsigned char value);
18 static unsigned char ValueFromSte(unsigned char value);
19
20 int ComputeDifference(const ShifterColor& otherColor) const;
21
22 bool operator< ( const ShifterColor& rhs ) const { return m_color < rhs.m_color; }
23 bool operator== ( const ShifterColor& rhs ) const { return m_color == rhs.m_color; }
24
25 private:
26 unsigned short m_color;
27 };
28
29
30 #endif

  ViewVC Help
Powered by ViewVC 1.1.26