X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Frendercontrol.hh;h=c619597fcd250b0141a80c6f9683d37af6221043;hb=02066c5d0b09ae49aa1f9b7193fb16f1ac7f6a37;hp=e8dcca449ac744dc54e1f5083adf07c8abad9b54;hpb=056c5b435d6f52d0ade3beece3e112c4c4cc5268;p=chaz%2Fopenbox diff --git a/otk/rendercontrol.hh b/otk/rendercontrol.hh index e8dcca44..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(::Window w) = 0; + virtual void drawBackground(Surface *sf, + const RenderTexture &texture) const = 0; }; }