2003-02-03 07:06:45 +00:00
|
|
|
// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
|
|
|
|
#ifndef __pseudorendercontrol_hh
|
|
|
|
#define __pseudorendercontrol_hh
|
|
|
|
|
|
|
|
#include "rendercontrol.hh"
|
|
|
|
|
|
|
|
namespace otk {
|
|
|
|
|
|
|
|
class PseudoRenderControl : public RenderControl {
|
|
|
|
private:
|
2003-02-14 01:49:27 +00:00
|
|
|
int _bpc; // number of bits per color
|
2003-02-12 06:18:28 +00:00
|
|
|
int _ncolors; // number of allocated colors, size of the XColor array
|
|
|
|
XColor *_colors; // the valid allocated colors
|
2003-02-12 00:27:32 +00:00
|
|
|
|
|
|
|
virtual void reduceDepth(Surface &sf, XImage *im) const;
|
2003-02-14 17:13:26 +00:00
|
|
|
|
|
|
|
const XColor *pickColor(int r, int g, int b) const;
|
2003-02-12 00:27:32 +00:00
|
|
|
|
2003-02-03 07:06:45 +00:00
|
|
|
public:
|
|
|
|
PseudoRenderControl(int screen);
|
|
|
|
virtual ~PseudoRenderControl();
|
|
|
|
|
2003-02-14 08:01:44 +00:00
|
|
|
virtual void allocateColor(XColor *color) const;
|
2003-02-03 07:06:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __pseudorendercontrol_hh
|