Blender  V3.3
Public Member Functions | List of all members
Freestyle::StrokeShaders::ConstantColorShader Class Reference

#include <BasicStrokeShaders.h>

Inheritance diagram for Freestyle::StrokeShaders::ConstantColorShader:
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
voidpy_ss
 

Detailed Description

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

Definition at line 242 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 254 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 262 of file BasicStrokeShaders.h.

◆ shade()

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

The shading method.

Reimplemented from Freestyle::StrokeShader.

Definition at line 198 of file BasicStrokeShaders.cpp.

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


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