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

ConstantColorShader Class Reference

#include <BasicStrokeShaders.h>

Inheritance diagram for ConstantColorShader:

StrokeShader List of all members.

Detailed Description

[ Color Shader ]. Assigns a constant color to every vertices of the Stroke.

Public Member Functions

 ConstantColorShader (float iR, float iG, float iB, float iAlpha=1.f)
virtual string getName () const
virtual void shade (Stroke &stroke) const

Constructor & Destructor Documentation

ConstantColorShader float  iR,
float  iG,
float  iB,
float  iAlpha = 1.f

Builds the shader from a user-specified color.

iR The red component
iG The green component
iB The blue component
iAlpha The alpha value

Member Function Documentation

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.

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