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

TextureAssignerShader Class Reference

#include <BasicStrokeShaders.h>

Inheritance diagram for TextureAssignerShader:

StrokeShader List of all members.

Detailed Description

[ Texture Shader ]. Assigns a texture to the stroke in order to simulate its marks system. This shader takes as input an integer value telling which texture and blending mode to use among a set of predefined textures. Here are the different presets: 0) -> /brushes/charcoalAlpha.bmp, HUMID_MEDIUM 1) -> /brushes/washbrushAlpha.bmp, HUMID_MEDIUM 2) -> /brushes/oil.bmp, HUMID_MEDIUM 3) -> /brushes/oilnoblend.bmp, HUMID_MEDIUM 4) -> /brushes/charcoalAlpha.bmp, DRY_MEDIUM 5) -> /brushes/washbrushAlpha.bmp, DRY_MEDIUM 6) -> /brushes/opaqueDryBrushAlpha.bmp, OPAQUE_MEDIUM 7) -> /brushes/opaqueBrushAlpha.bmp, Stroke::OPAQUE_MEDIUM Any other value will lead to the following preset: default) -> /brushes/smoothAlpha.bmp, OPAQUE_MEDIUM.

Public Member Functions

 TextureAssignerShader (int id)
virtual void shade (Stroke &stroke) const

Constructor & Destructor Documentation

TextureAssignerShader int  id  )  [inline]

Builds the shader.

id The number of the preset to use.

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: