#include "otk.hh"
#include "rendercontrol.hh"
#include "rendertexture.hh"
#include <stdio.h>
#include <X11/Xlib.h>
Include dependency graph for rendertest.cc:

Go to the source code of this file.
Functions | |
| int | main (int argc, char **argv) |
|
||||||||||||
|
Definition at line 8 of file rendertest.cc. References otk::Widget::resize(), otk::Application::run(), otk::Widget::setTexture(), and otk::AppWidget::show().
00009 {
00010 printf("\n");
00011
00012 otk::Application app(argc, argv);
00013 otk::AppWidget foo(&app);
00014 foo.resize(600, 500);
00015
00016 otk::RenderColor color(0, 0x96, 0xba, 0x86);
00017 otk::RenderColor color2(0, 0x5a, 0x72, 0x4c);
00018 otk::RenderColor colord(0, 0, 0, 0);
00019 otk::RenderColor colorl(0, 0xff, 0xff, 0xff);
00020 otk::RenderTexture tex(false,
00021 otk::RenderTexture::Raised,
00022 otk::RenderTexture::Bevel1,
00023 false,
00024 otk::RenderTexture::Vertical,
00025 false,
00026 &color,
00027 &color2,
00028 &colord,
00029 &colorl,
00030 0,
00031 0);
00032 foo.setTexture(&tex);
00033
00034 foo.show();
00035
00036 app.run();
00037
00038 printf("\n");
00039 return 0;
00040 }
|
1.3-rc2