]>
Dogcows Code - chaz/openbox/blob - otk/rendercontrol.hh
371198468107ff585af072e841127faa65dc1424
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __rendercontrol_hh
3 #define __rendercontrol_hh
18 const ScreenInfo
*_screen
;
21 // color tables, meaning, 256 (possibly) different shades of each color,
22 // based on the number of bits there are available for each color in the
24 unsigned char _red_color_table[256];
25 unsigned char _green_color_table[256];
26 unsigned char _blue_color_table[256];
32 int _cpc; // colors-per-channel: must be a value between [2,6]
33 int _bpp; // bits-per-pixel
35 unsigned int *_grad_xbuffer;
36 unsigned int *_grad_ybuffer;
37 unsigned int _grad_buffer_width;
38 unsigned int _grad_buffer_height;
40 unsigned long *_sqrt_table;
42 // These values are all determined based on a visual
44 int _red_bits; // the number of bits (1-255) that each shade of color
45 int _green_bits; // spans across. best case is 1, which gives 255 shades.
47 unsigned char _red_color_table[256];
48 unsigned char _green_color_table[256];
49 unsigned char _blue_color_table[256];
51 // These are only used for TrueColor visuals
52 int _red_offset; // the offset of each color in a color mask
56 // These are only used for !TrueColor visuals
61 RenderControl(const ScreenInfo
*screen
);
64 virtual ~RenderControl();
66 static RenderControl
*getRenderControl(int screen
);
68 virtual void drawBackground(Surface
*sf
,
69 const RenderTexture
&texture
) const = 0;
74 #endif // __rendercontrol_hh
This page took 0.035807 seconds and 4 git commands to generate.