]> Dogcows Code - chaz/openbox/blob - otk/truerendercontrol.hh
b85a7cc2e83f35cb529b7a720f5c36e1ba5afda1
[chaz/openbox] / 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
This page took 0.040178 seconds and 4 git commands to generate.