2 #include "rendercontrol.hh"
3 #include "rendertexture.hh"
8 int main(int argc, char **argv)
12 otk::Application app(argc, argv);
13 otk::AppWidget foo(&app);
17 otk::RenderControl *rc = otk::RenderControl::getRenderControl(0);
19 otk::RenderTexture tex;
21 rc->drawBackground(&foo, tex);
22 XSetWindowBackgroundPixmap(**otk::display, foo.window(), foo.pixmap());
23 XClearWindow(**otk::display, foo.window());