]> Dogcows Code - chaz/openbox/blobdiff - otk/rendertest.cc
add rendercolor class, with a cache of gcs for the colors
[chaz/openbox] / otk / rendertest.cc
index d3e38ae802fadcfdbe9544fb633558d2a5f3d3c3..fcdad6fd42e47f7d0356af6184aa0acfbe5a0bc6 100644 (file)
@@ -1,7 +1,9 @@
 #include "otk.hh"
 #include "rendercontrol.hh"
+#include "rendertexture.hh"
 
 #include <stdio.h>
+#include <X11/Xlib.h>
 
 int main(int argc, char **argv)
 {
@@ -10,16 +12,14 @@ int main(int argc, char **argv)
   otk::Application app(argc, argv);
   otk::AppWidget foo(&app);
   foo.resize(600, 500);
-  foo.show();
   
-  otk::RenderControl *rc = otk::RenderControl::getRenderControl(0);
-
-  rc->render(&foo);
+  otk::RenderTexture tex;
+  foo.setTexture(&tex);
 
+  foo.show();
+  
   app.run();
 
-  delete rc;
-
   printf("\n");
   return 0;
 }
This page took 0.024337 seconds and 4 git commands to generate.