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 ConstantColorShader:
Public Member Functions | |
ConstantColorShader (float iR, float iG, float iB, float iAlpha=1.f) | |
virtual string | getName () const |
virtual void | shade (Stroke &stroke) const |
ConstantColorShader | ( | float | iR, | |
float | iG, | |||
float | iB, | |||
float | iAlpha = 1.f | |||
) | [inline] |
Builds the shader from a user-specified color.
iR | The red component | |
iG | The green component | |
iB | The blue component | |
iAlpha | The alpha value |
virtual string getName | ( | ) | const [inline, virtual] |
Returns the string corresponding to the shader's name.
Reimplemented from StrokeShader.
virtual void shade | ( | Stroke & | stroke | ) | const [virtual] |
The shading method.
Reimplemented from StrokeShader.