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

ColorVariationPatternShader Class Reference

#include <BasicStrokeShaders.h>

Inheritance diagram for ColorVariationPatternShader:

StrokeShader List of all members.

Detailed Description

[ Color Shader ]. Applys a pattern to vary original color. The new color is the result of the multiplication of the pattern and the original color


Public Member Functions

 ColorVariationPatternShader (const string pattern_name, bool stretch=true)
virtual ~ColorVariationPatternShader ()
virtual void shade (Stroke &stroke) const

Constructor & Destructor Documentation

ColorVariationPatternShader const string  pattern_name,
bool  stretch = true
 

Builds the shader from the pattern texture file name.

Parameters:
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


Member Function Documentation

virtual void shade Stroke stroke  )  const [virtual]
 

The shading method.

Reimplemented from StrokeShader.


The documentation for this class was generated from the following file: