]> Dogcows Code - chaz/openbox/blob - otk/rendertest.cc
dont try free the widget's pixmap until it is no longer in use
[chaz/openbox] / 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 }
This page took 0.035901 seconds and 4 git commands to generate.