openbox/otk/truerendercontrol.hh

34 lines
750 B
C++
Raw Normal View History

2003-01-18 00:33:48 +00:00
// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
#ifndef __truerendercontrol_hh
#define __truerendercontrol_hh
#include "rendercontrol.hh"
#include <vector>
2003-01-18 00:33:48 +00:00
namespace otk {
class TrueRenderControl : public RenderControl {
private:
// the number of bits to shift a color value (from 0-255) to the right, to
// fit it into the the color mask (do this before the offset)
int _red_shift;
int _green_shift;
int _blue_shift;
// the offset of each color in a color mask
int _red_offset;
int _green_offset;
int _blue_offset;
2003-01-18 00:33:48 +00:00
public:
TrueRenderControl(int screen);
2003-01-18 00:33:48 +00:00
virtual ~TrueRenderControl();
2003-01-18 00:51:11 +00:00
2003-01-18 04:31:16 +00:00
virtual void drawBackground(Surface *sf, const RenderTexture &texture) const;
2003-01-18 00:33:48 +00:00
};
}
#endif // __truerendercontrol_hh