X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=otk%2Frendercontrol.hh;h=c619597fcd250b0141a80c6f9683d37af6221043;hb=f8edbc908370d1b00db027d03ade1566dbb3dd24;hp=123fd1bfb115a42d5c6c9a26c8fbde1c6ee07bfc;hpb=67bb7f8ce08d3ef625843ab7ea2c4434b1620ecf;p=chaz%2Fopenbox diff --git a/otk/rendercontrol.hh b/otk/rendercontrol.hh index 123fd1bf..c619597f 100644 --- a/otk/rendercontrol.hh +++ b/otk/rendercontrol.hh @@ -4,18 +4,19 @@ extern "C" { #include +#include } 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; @@ -66,7 +67,8 @@ public: static RenderControl *getRenderControl(int screen); - virtual void render(::Drawable d); + virtual void drawBackground(Surface *sf, + const RenderTexture &texture) const = 0; }; }