]> icculus.org git repositories - mikachu/openbox.git/blob - otk/truerendercontrol.hh
provide RenderControls to all otk from the display class. initialize them all there...
[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 #include <vector>
8
9 namespace otk {
10
11 class TrueRenderControl : public RenderControl {
12 private:
13   // the number of bits to shift a color value (from 0-255) to the right, to
14   // fit it into the the color mask (do this before the offset)
15   int _red_shift;
16   int _green_shift;
17   int _blue_shift;
18
19   // the offset of each color in a color mask
20   int _red_offset;
21   int _green_offset;
22   int _blue_offset;
23
24 public:
25   TrueRenderControl(int screen);
26   virtual ~TrueRenderControl();
27
28   virtual void drawBackground(Surface *sf, const RenderTexture &texture) const;
29 };
30
31 }
32
33 #endif // __truerendercontrol_hh