]>
Dogcows Code - chaz/openbox/blob - otk/truerendercontrol.hh
7da6f8be3671b708d26be19bcd533ae67d3f3edf
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __truerendercontrol_hh
3 #define __truerendercontrol_hh
5 #include "rendercontrol.hh"
12 # ifdef HAVE_SYS_TYPES_H
13 # include <sys/types.h>
24 typedef uint32_t pixel32
;
25 typedef uint16_t pixel16
;
27 typedef u_int32_t pixel32
;
28 typedef u_int16_t pixel16
;
31 class TrueRenderControl
: public RenderControl
{
33 // the number of bits to shift a color value (from 0-255) to the right, to
34 // fit it into the the color mask (do this before the offset)
39 // the offset of each color in a color mask
45 TrueRenderControl(int screen
);
46 virtual ~TrueRenderControl();
48 virtual void drawBackground(Surface
& sf
, const RenderTexture
&texture
) const;
49 virtual void drawGradientBackground(Surface
&sf
,
50 const RenderTexture
&texture
) const;
52 inline void highlight(pixel32
*x
, pixel32
*y
, bool raised
) const;
53 void reduceDepth(XImage
*im
, pixel32
*data
) const;
58 #endif // __truerendercontrol_hh
This page took 0.039686 seconds and 4 git commands to generate.