#include "otk.hh"
#include "rendercontrol.hh"
+#include "rendertexture.hh"
#include <stdio.h>
#include <X11/Xlib.h>
otk::Application app(argc, argv);
otk::AppWidget foo(&app);
foo.resize(600, 500);
- foo.show();
- otk::RenderControl *rc = otk::RenderControl::getRenderControl(0);
+ otk::RenderTexture tex;
+ foo.setTexture(&tex);
- rc->render(&foo);
- XSetWindowBackgroundPixmap(**otk::display, foo.window(), foo.pixmap());
- XClearWindow(**otk::display, foo.window());
+ foo.show();
app.run();
- delete rc;
-
printf("\n");
return 0;
}