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

otk::PseudoRenderControl Class Reference

#include <pseudorendercontrol.hh>

Inheritance diagram for otk::PseudoRenderControl:

Inheritance graph
[legend]
Collaboration diagram for otk::PseudoRenderControl:

Collaboration graph
[legend]
List of all members.

Public Methods

 PseudoRenderControl (int screen)
virtual ~PseudoRenderControl ()
virtual void drawBackground (Surface &sf, const RenderTexture &texture) const
 Draws a background onto a Surface, as specified by a RenderTexture.


Constructor & Destructor Documentation

otk::PseudoRenderControl::PseudoRenderControl int    screen
 

Definition at line 24 of file pseudorendercontrol.cc.

00025   : RenderControl(screen)
00026 {
00027   printf("Initializing PseudoColor RenderControl\n");
00028 }

otk::PseudoRenderControl::~PseudoRenderControl   [virtual]
 

Definition at line 30 of file pseudorendercontrol.cc.

00031 {
00032   printf("Destroying PseudoColor RenderControl\n");
00033 }


Member Function Documentation

void otk::PseudoRenderControl::drawBackground Surface   sf,
const RenderTexture   texture
const [virtual]
 

Draws a background onto a Surface, as specified by a RenderTexture.

Implements otk::RenderControl.

Definition at line 35 of file pseudorendercontrol.cc.

References otk::Surface::_screen, otk::RenderTexture::color(), otk::RenderControl::drawSolidBackground(), and otk::RenderColor::screen().

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 }


The documentation for this class was generated from the following files:
Generated on Tue Feb 4 23:00:28 2003 for Openbox by doxygen1.3-rc2