00001
00002
00003 #ifdef HAVE_CONFIG_H
00004 # include "../config.h"
00005 #endif // HAVE_CONFIG_H
00006
00007 #include "pseudorendercontrol.hh"
00008 #include "display.hh"
00009 #include "screeninfo.hh"
00010 #include "surface.hh"
00011 #include "rendertexture.hh"
00012
00013 extern "C" {
00014 #ifdef HAVE_STDLIB_H
00015 # include <stdlib.h>
00016 #endif // HAVE_STDLIB_H
00017
00018 #include "../src/gettext.h"
00019 #define _(str) gettext(str)
00020 }
00021
00022 namespace otk {
00023
00024 PseudoRenderControl::PseudoRenderControl(int screen)
00025 : RenderControl(screen)
00026 {
00027 printf("Initializing PseudoColor RenderControl\n");
00028 }
00029
00030 PseudoRenderControl::~PseudoRenderControl()
00031 {
00032 printf("Destroying PseudoColor RenderControl\n");
00033 }
00034
00035 void PseudoRenderControl::drawBackground(Surface& sf,
00036 const RenderTexture &texture) const
00037 {
00038 assert(_screen == sf._screen);
00039 assert(_screen == texture.color().screen());
00040
00041
00042
00043 drawSolidBackground(sf, texture);
00044 }
00045
00046 }