]>
Dogcows Code - chaz/openbox/blob - otk/pseudorendercontrol.hh
603fc4baa6ea4ac6676a6c6e4b67f1ebca3ec569
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __pseudorendercontrol_hh
3 #define __pseudorendercontrol_hh
5 #include "rendercontrol.hh"
9 class PseudoRenderControl
: public RenderControl
{
11 // color tables, meaning, 256 (possibly) different shades of each color,
12 // based on the number of bits there are available for each color in the
14 unsigned char _red_color_table
[256];
15 unsigned char _green_color_table
[256];
16 unsigned char _blue_color_table
[256];
18 int _cpc
; // colors-per-channel: must be a value between [2,6]
19 int _bpp
; // bits-per-pixel
20 int _ncolors
; // number of allocated colors, size of the XColor array
24 virtual void reduceDepth(Surface
&sf
, XImage
*im
) const;
27 PseudoRenderControl(int screen
);
28 virtual ~PseudoRenderControl();
34 #endif // __pseudorendercontrol_hh
This page took 0.033655 seconds and 3 git commands to generate.