From 72ff846dbb56ec36231fb761b864da09885d3690 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 12 Feb 2003 00:27:32 +0000 Subject: make all the rendering code in RenderControl. use true/pseudo RenderControl classes just for reducing the pixel32 data to the appropriate bitdepth. --- otk/pseudorendercontrol.hh | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) (limited to 'otk/pseudorendercontrol.hh') diff --git a/otk/pseudorendercontrol.hh b/otk/pseudorendercontrol.hh index d834d5d7..4f53d34a 100644 --- a/otk/pseudorendercontrol.hh +++ b/otk/pseudorendercontrol.hh @@ -4,32 +4,18 @@ #include "rendercontrol.hh" -extern "C" { - -#ifdef HAVE_STDINT_H -# include -#else -# ifdef HAVE_SYS_TYPES_H -# include -# endif -#endif - -} - -#include - namespace otk { class PseudoRenderControl : public RenderControl { private: - + // add some vars!!! + + virtual void reduceDepth(Surface &sf, XImage *im) const; + public: PseudoRenderControl(int screen); virtual ~PseudoRenderControl(); - virtual void drawBackground(Surface& sf, const RenderTexture &texture) const; - virtual void drawImage(Surface &sf, int w, int h, - unsigned long *data) const; }; } -- cgit v1.2.3