]>
Dogcows Code - chaz/openbox/blob - otk/rendercontrol.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __rendercontrol_hh
3 #define __rendercontrol_hh
16 const ScreenInfo
*_screen
;
18 // the number of bits (1-255) that each shade of color spans across. best
19 // case is 1, which gives 255 shades
24 // color tables, meaning, 256 (possibly) different shades of each color,
25 // based on the number of bits there are available for each color in the
27 unsigned char _red_color_table
[256];
28 unsigned char _green_color_table
[256];
29 unsigned char _blue_color_table
[256];
34 int _cpc; // colors-per-channel: must be a value between [2,6]
35 int _bpp; // bits-per-pixel
37 unsigned int *_grad_xbuffer;
38 unsigned int *_grad_ybuffer;
39 unsigned int _grad_buffer_width;
40 unsigned int _grad_buffer_height;
42 unsigned long *_sqrt_table;
44 // These values are all determined based on a visual
46 int _red_bits; // the number of bits (1-255) that each shade of color
47 int _green_bits; // spans across. best case is 1, which gives 255 shades.
49 unsigned char _red_color_table[256];
50 unsigned char _green_color_table[256];
51 unsigned char _blue_color_table[256];
53 // These are only used for TrueColor visuals
54 int _red_offset; // the offset of each color in a color mask
58 // These are only used for !TrueColor visuals
63 RenderControl(const ScreenInfo
*screen
);
66 virtual ~RenderControl();
68 static RenderControl
*getRenderControl(int screen
);
70 virtual void render(::Drawable d
) = 0;
75 #endif // __rendercontrol_hh
This page took 0.038301 seconds and 4 git commands to generate.