h o m e | d o c u m e n t a t i o n | c l a s s h i e r a r c h y |
#include <BasicStrokeShaders.h>
Inheritance diagram for ColorVariationPatternShader:
Public Member Functions | |
ColorVariationPatternShader (const string pattern_name, bool stretch=true) | |
virtual | ~ColorVariationPatternShader () |
virtual void | shade (Stroke &stroke) const |
ColorVariationPatternShader | ( | const string | pattern_name, | |
bool | stretch = true | |||
) |
Builds the shader from the pattern texture file name.
pattern_name | The file name of the texture file to use as pattern | |
stretch | Tells whether the texture must be strecthed or repeted to fit the stroke. |
virtual ~ColorVariationPatternShader | ( | ) | [inline, virtual] |
Destructor
virtual void shade | ( | Stroke & | stroke | ) | const [virtual] |
The shading method.
Reimplemented from StrokeShader.