]>
Dogcows Code - chaz/openbox/blob - otk/truerendercontrol.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __truerendercontrol_hh
3 #define __truerendercontrol_hh
5 #include "rendercontrol.hh"
11 #ifdef WORDS_BIGENDIAN
12 const int default_red_shift
=0;
13 const int default_green_shift
=8;
14 const int default_blue_shift
=16;
15 const int endian
=MSBFirst
;
17 const int default_red_shift
=16;
18 const int default_green_shift
=8;
19 const int default_blue_shift
=0;
20 const int endian
=LSBFirst
;
21 #endif /* WORDS_BIGENDIAN */
23 class TrueRenderControl
: public RenderControl
{
25 // the number of bits to shift a color value (from 0-255) to the right, to
26 // fit it into the the color mask (do this before the offset)
31 // the offset of each color in a color mask
36 inline void highlight(pixel32
*x
, pixel32
*y
, bool raised
) const;
37 void reduceDepth(Surface
&sf
, XImage
*im
) const;
38 void verticalGradient(Surface
&sf
, const RenderTexture
&texture
) const;
39 void diagonalGradient(Surface
&sf
, const RenderTexture
&texture
) const;
40 void crossDiagonalGradient(Surface
&sf
, const RenderTexture
&texture
) const;
41 virtual void drawGradientBackground(Surface
&sf
,
42 const RenderTexture
&texture
) const;
45 TrueRenderControl(int screen
);
46 virtual ~TrueRenderControl();
48 virtual void drawBackground(Surface
& sf
, const RenderTexture
&texture
) const;
53 #endif // __truerendercontrol_hh
This page took 0.037592 seconds and 4 git commands to generate.