]> icculus.org git repositories - mikachu/openbox.git/blob - otk/truerendercontrol.hh
use a bitshift on the rgb values instead of a color table
[mikachu/openbox.git] / otk / truerendercontrol.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __truerendercontrol_hh
3 #define __truerendercontrol_hh
4
5 #include "rendercontrol.hh"
6
7 namespace otk {
8
9 class TrueRenderControl : public RenderControl {
10 private:
11   // the offset of each color in a color mask
12   int _red_offset;
13   int _green_offset;
14   int _blue_offset;
15
16   // the number of bits to shift a color value (from 0-255) to fit it into the
17   // the color mask
18   int _red_shift;
19   int _green_shift;
20   int _blue_shift;
21
22
23 public:
24   TrueRenderControl(const ScreenInfo *screen);
25   virtual ~TrueRenderControl();
26
27   virtual void drawBackground(Surface *sf, const RenderTexture &texture) const;
28 };
29
30 }
31
32 #endif // __truerendercontrol_hh