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 StrokeTextureShader:
Public Member Functions | |
StrokeTextureShader (const string textureFile, Stroke::MediumType mediumType=Stroke::OPAQUE_MEDIUM, bool iTips=false) | |
virtual void | shade (Stroke &stroke) const |
StrokeTextureShader | ( | const string | textureFile, | |
Stroke::MediumType | mediumType = Stroke::OPAQUE_MEDIUM , |
|||
bool | iTips = false | |||
) | [inline] |
Builds the shader from the texture file name and the blending mode to use.
textureFile | The the texture file name. |
mediumType | The medium type and therefore, the blending mode that must be used for the rendering of this stroke. | |
iTips | Tells whether the texture includes tips or not. If it is the case, the texture image must respect the following format: * __________ * | | * | A | * |__________| * | | | * | B | C | * |_____|____| * *
|
virtual void shade | ( | Stroke & | stroke | ) | const [virtual] |
The shading method
Reimplemented from StrokeShader.