]> Dogcows Code - chaz/openbox/blobdiff - otk/rendercontrol.hh
starting to make render's interface
[chaz/openbox] / otk / rendercontrol.hh
index d3926745317b84d302f3e6a904ef31352890fcce..c619597fcd250b0141a80c6f9683d37af6221043 100644 (file)
@@ -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;
 };
 
 }
This page took 0.020681 seconds and 4 git commands to generate.