Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

/otk/pseudorendercontrol.cc

Go to the documentation of this file.
00001 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
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   // in psuedo color, gradients aren't even worth while! just draw a solid!
00042   //if (texture.gradient() == RenderTexture::Solid) {
00043   drawSolidBackground(sf, texture);
00044 }
00045 
00046 }

Generated on Tue Feb 4 22:58:56 2003 for Openbox by doxygen1.3-rc2