StrokeTextureShader Class Reference
#include <BasicStrokeShaders.h>
Inheritance diagram for StrokeTextureShader:
List of all members.
Detailed Description
[ Texture Shader ]. Assigns a texture and a blending mode to the stroke in order to simulate its marks system.
Constructor & Destructor Documentation
|
Builds the shader from the texture file name and the blending mode to use. - Parameters:
-
| textureFile | The the texture file name. |
- Attention:
- The textures must be placed in the $FREESTYLE_DIR/data/textures/brushes directory.
- Parameters:
-
| 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 |
* |_____|____|
*
*
- A : The stroke's corpus texture
- B : The stroke's left extremity texture
- C : The stroke's right extremity texture
|
|
Member Function Documentation
virtual void shade |
( |
Stroke & |
stroke |
) |
const [virtual] |
|
The documentation for this class was generated from the following file: