#include <pseudorendercontrol.hh>
Inheritance diagram for otk::PseudoRenderControl:
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. |
|
Definition at line 24 of file pseudorendercontrol.cc.
00025 : RenderControl(screen) 00026 { 00027 printf("Initializing PseudoColor RenderControl\n"); 00028 } |
|
Definition at line 30 of file pseudorendercontrol.cc.
00031 {
00032 printf("Destroying PseudoColor RenderControl\n");
00033 }
|
|
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 } |