X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Frendercontrol.hh;h=c619597fcd250b0141a80c6f9683d37af6221043;hb=f8edbc908370d1b00db027d03ade1566dbb3dd24;hp=d3926745317b84d302f3e6a904ef31352890fcce;hpb=d264dbca0c51ff3dfacb66eb66543a0088447aa3;p=chaz%2Fopenbox diff --git a/otk/rendercontrol.hh b/otk/rendercontrol.hh index d3926745..c619597f 100644 --- a/otk/rendercontrol.hh +++ b/otk/rendercontrol.hh @@ -10,13 +10,13 @@ extern "C" { namespace otk { class ScreenInfo; +class Surface; +class RenderTexture; class RenderControl { protected: const ScreenInfo *_screen; - // the number of bits (1-255) that each shade of color spans across. best - // case is 1, which gives 255 shades int _red_bits; int _green_bits; int _blue_bits; @@ -67,7 +67,8 @@ public: static RenderControl *getRenderControl(int screen); - virtual void render(::Drawable d) = 0; + virtual void drawBackground(Surface *sf, + const RenderTexture &texture) const = 0; }; }