#include "otk.hh"
#include "rendercontrol.hh"
+#include "rendertexture.hh"
#include <stdio.h>
+#include <X11/Xlib.h>
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;
}