X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Frendertest.cc;h=484a08ffe601d508937f8a81634cc97c01db0355;hb=5face4c6f35172761367f63ac0b6eaf62d84e532;hp=c9226b1f5560b5c094c423ee803cd69b3c19d902;hpb=0dcbf985c11c850b30b2983e1e20cd8cf033f054;p=chaz%2Fopenbox diff --git a/otk/rendertest.cc b/otk/rendertest.cc index c9226b1f..484a08ff 100644 --- a/otk/rendertest.cc +++ b/otk/rendertest.cc @@ -1,7 +1,9 @@ #include "otk.hh" #include "rendercontrol.hh" +#include "rendertexture.hh" #include +#include int main(int argc, char **argv) { @@ -10,16 +12,29 @@ 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.window()); + otk::RenderColor color(0, 0x96, 0xba, 0x86); + otk::RenderColor color2(0, 0x5a, 0x72, 0x4c); + otk::RenderColor colord(0, 0, 0, 0); + otk::RenderColor colorl(0, 0xff, 0xff, 0xff); + otk::RenderTexture tex(false, + otk::RenderTexture::Raised, + otk::RenderTexture::Bevel1, + false, + otk::RenderTexture::Vertical, + false, + &color, + &color2, + &colord, + &colorl, + 0, + 0); + foo.setTexture(&tex); + foo.show(); + app.run(); - delete rc; - printf("\n"); return 0; }