RenderControl(int screen);
- virtual void reduceDepth(Surface &sf, XImage *im) const = 0;
-
inline void highlight(pixel32 *x, pixel32 *y, bool raised) const;
void verticalGradient(Surface &sf, const RenderTexture &texture) const;
void diagonalGradient(Surface &sf, const RenderTexture &texture) const;
virtual void drawSolidBackground(Surface& sf,
const RenderTexture& texture) const;
+ //! Reduces a Surface's Surface::pixelData so that it will display correctly
+ //! on the screen's depth
+ /*!
+ This function allocates and sets the im->data member. The allocated memory
+ will be freed when XDetroyImage is called on the XImage.
+ */
+ virtual void reduceDepth(Surface &sf, XImage *im) const = 0;
+
public:
virtual ~RenderControl();
static RenderControl *getRenderControl(int screen);
- virtual void drawRoot(const RenderColor &color) const;
-
//! Draws a background onto a Surface, as specified by a RenderTexture
/*!
This function will overwrite the entire surface.
//! Draws a PixmapMask with a specified color onto a Surface
virtual void drawMask(Surface &sf, const RenderColor &color,
const PixmapMask &mask) const;
+
+ virtual void allocateColor(XColor *color) const = 0;
};
}