Blender V4.3
Freestyle::StrokeShaders::ConstantColorShader Class Reference

#include <BasicStrokeShaders.h>

Inherits Freestyle::StrokeShader.

Public Member Functions

 ConstantColorShader (float iR, float iG, float iB, float iAlpha=1.0f)
 
virtual string getName () const
 
virtual int shade (Stroke &stroke) const
 
- Public Member Functions inherited from Freestyle::StrokeShader
 StrokeShader ()
 
virtual ~StrokeShader ()
 

Additional Inherited Members

- Public Attributes inherited from Freestyle::StrokeShader
void * py_ss
 

Detailed Description

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

Definition at line 234 of file BasicStrokeShaders.h.

Constructor & Destructor Documentation

◆ ConstantColorShader()

Freestyle::StrokeShaders::ConstantColorShader::ConstantColorShader ( float iR,
float iG,
float iB,
float iAlpha = 1.0f )
inline

Builds the shader from a user-specified color.

Parameters
iRThe red component
iGThe green component
iBThe blue component
iAlphaThe alpha value

Definition at line 246 of file BasicStrokeShaders.h.

Member Function Documentation

◆ getName()

virtual string Freestyle::StrokeShaders::ConstantColorShader::getName ( ) const
inlinevirtual

Returns the string corresponding to the shader's name.

Reimplemented from Freestyle::StrokeShader.

Definition at line 254 of file BasicStrokeShaders.h.

◆ shade()

int Freestyle::StrokeShaders::ConstantColorShader::shade ( Stroke & stroke) const
virtual

The shading method.

Reimplemented from Freestyle::StrokeShader.

Definition at line 204 of file BasicStrokeShaders.cpp.

References Freestyle::Stroke::strokeVerticesBegin(), Freestyle::Stroke::strokeVerticesEnd(), and v.


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