]> Dogcows Code - chaz/openbox/blobdiff - otk/rendertest.cc
offsets in planar surfaces
[chaz/openbox] / otk / rendertest.cc
index d6e3dbfcab9ca596c0e4f1b2fe8650deeeb36cb5..b3a03a03b9b53c50f55b09aa0b42fec50e1e94cf 100644 (file)
@@ -1,9 +1,14 @@
+#include "config.h"
+
 #include "otk.hh"
 #include "rendercontrol.hh"
 #include "rendertexture.hh"
 
-#include <stdio.h>
+extern "C" {
 #include <X11/Xlib.h>
+}
+
+#include <cstdio>
 
 int main(int argc, char **argv)
 {
@@ -13,14 +18,20 @@ int main(int argc, char **argv)
   otk::AppWidget foo(&app);
   foo.resize(600, 500);
 
-  otk::RenderColor color(0, 0, 0xff, 0xff);
+  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::Flat,
+                        otk::RenderTexture::Raised,
+                        otk::RenderTexture::Bevel1,
                         false,
-                        otk::RenderTexture::Solid,
+                        otk::RenderTexture::Vertical,
                         false,
                         &color,
-                        0,
+                         &color2,
+                        &colord,
+                        &colorl,
                         0,
                         0);
   foo.setTexture(&tex);
This page took 0.020673 seconds and 4 git commands to generate.