]> Dogcows Code - chaz/openbox/blobdiff - otk/rendercontrol.hh
add new shit
[chaz/openbox] / otk / rendercontrol.hh
index 123fd1bfb115a42d5c6c9a26c8fbde1c6ee07bfc..c619597fcd250b0141a80c6f9683d37af6221043 100644 (file)
@@ -4,18 +4,19 @@
 
 extern "C" {
 #include <X11/Xlib.h>
+#include <X11/Xutil.h>
 }
 
 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;
 };
 
 }
This page took 0.02635 seconds and 4 git commands to generate.