]> icculus.org git repositories - mikachu/openbox.git/blob - otk/rendertest.cc
dont try free the widget's pixmap until it is no longer in use
[mikachu/openbox.git] / otk / rendertest.cc
1 #include "otk.hh"
2 #include "rendercontrol.hh"
3 #include "rendertexture.hh"
4
5 #include <stdio.h>
6 #include <X11/Xlib.h>
7
8 int main(int argc, char **argv)
9 {
10   printf("\n");
11
12   otk::Application app(argc, argv);
13   otk::AppWidget foo(&app);
14   foo.resize(600, 500);
15
16   otk::RenderColor color(0, 0, 0xff, 0xff);
17   otk::RenderTexture tex(false,
18                          otk::RenderTexture::Flat,
19                          false,
20                          otk::RenderTexture::Solid,
21                          false,
22                          &color,
23                          0,
24                          0,
25                          0);
26   foo.setTexture(&tex);
27
28   foo.show();
29   
30   app.run();
31
32   printf("\n");
33   return 0;
34 }