arsa  2.7
Public Member Functions | List of all members
irr::scene::SVertexColorInterpolateQuadraticManipulator Class Reference

Vertex manipulator which interpolates the color values. More...

#include <SVertexManipulator.h>

Inheritance diagram for irr::scene::SVertexColorInterpolateQuadraticManipulator:
irr::scene::IVertexManipulator

Public Member Functions

 SVertexColorInterpolateQuadraticManipulator (video::SColor color1, video::SColor color2, f32 factor)
 
void operator() (video::S3DVertex &vertex) const
 

Detailed Description

Vertex manipulator which interpolates the color values.

Uses linear interpolation.

Definition at line 205 of file SVertexManipulator.h.

Constructor & Destructor Documentation

◆ SVertexColorInterpolateQuadraticManipulator()

irr::scene::SVertexColorInterpolateQuadraticManipulator::SVertexColorInterpolateQuadraticManipulator ( video::SColor  color1,
video::SColor  color2,
f32  factor 
)
inline

Definition at line 208 of file SVertexManipulator.h.

208  :
209  Color1(color1), Color2(color2), Factor(factor) {}

Member Function Documentation

◆ operator()()

void irr::scene::SVertexColorInterpolateQuadraticManipulator::operator() ( video::S3DVertex vertex) const
inline

Definition at line 210 of file SVertexManipulator.h.

211  {
212  vertex.Color=vertex.Color.getInterpolated_quadratic(Color1, Color2, Factor);
213  }

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