X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Frendertest.cc;h=b3a03a03b9b53c50f55b09aa0b42fec50e1e94cf;hb=e9a7fc91bc4485a7fc3f9542dbba86b8d3823c7d;hp=fcdad6fd42e47f7d0356af6184aa0acfbe5a0bc6;hpb=d8d9b42777ace234f3471918e1210062578f8188;p=chaz%2Fopenbox diff --git a/otk/rendertest.cc b/otk/rendertest.cc index fcdad6fd..b3a03a03 100644 --- a/otk/rendertest.cc +++ b/otk/rendertest.cc @@ -1,9 +1,14 @@ +#include "config.h" + #include "otk.hh" #include "rendercontrol.hh" #include "rendertexture.hh" -#include +extern "C" { #include +} + +#include int main(int argc, char **argv) { @@ -12,8 +17,23 @@ int main(int argc, char **argv) otk::Application app(argc, argv); otk::AppWidget foo(&app); foo.resize(600, 500); - - otk::RenderTexture tex; + + 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();