5#ifndef __S_VERTEX_MANIPULATOR_H_INCLUDED__
6#define __S_VERTEX_MANIPULATOR_H_INCLUDED__
67 video::SColor high) : Threshold(threshold), Low(low), High(high) {}
194 Color(color), Factor(factor) {}
209 Color1(color1), Color2(color2), Factor(factor) {}
225 template <
typename VType>
228 vertex.Pos *= Factor;
242 template <
typename VType>
245 vertex.Pos += vertex.Normal*Factor;
256 template <
typename VType>
277 template <
typename VType>
281 vertex.TCoords *= Factor;
4x4 matrix. Mostly used as transformation matrix for 3d calculations.
void transformVect(vector3df &vect) const
Transforms the vector by this matrix.
Vertex manipulator which adjusts the brightness by the given amount.
SVertexColorBrightnessManipulator(s32 amount)
void operator()(video::S3DVertex &vertex) const
Vertex manipulator which adjusts the contrast by the given factor and brightness by a signed amount.
void operator()(video::S3DVertex &vertex) const
SVertexColorContrastBrightnessManipulator(f32 factor, s32 amount)
Vertex manipulator which adjusts the contrast by the given factor.
SVertexColorContrastManipulator(f32 factor)
void operator()(video::S3DVertex &vertex) const
Vertex manipulator which desaturates the color values.
void operator()(video::S3DVertex &vertex) const
Vertex manipulator which desaturates the color values.
void operator()(video::S3DVertex &vertex) const
Vertex manipulator which desaturates the color values.
void operator()(video::S3DVertex &vertex) const
Vertex manipulator which adjusts the brightness by a gamma operation.
void operator()(video::S3DVertex &vertex) const
SVertexColorGammaManipulator(f32 gamma)
Vertex manipulator which interpolates the color values.
void operator()(video::S3DVertex &vertex) const
SVertexColorInterpolateLinearManipulator(video::SColor color, f32 factor)
Vertex manipulator which interpolates the color values.
SVertexColorInterpolateQuadraticManipulator(video::SColor color1, video::SColor color2, f32 factor)
void operator()(video::S3DVertex &vertex) const
Vertex manipulator which invertes the RGB values.
void operator()(video::S3DVertex &vertex) const
Vertex manipulator which scales the color values.
SVertexColorScaleManipulator(f32 factor)
void operator()(video::S3DVertex &vertex) const
Vertex manipulator to set the alpha value of the vertex color to a fixed value.
SVertexColorSetAlphaManipulator(u32 alpha)
void operator()(video::S3DVertex &vertex) const
Vertex manipulator to set color to a fixed color for all vertices.
void operator()(video::S3DVertex &vertex) const
SVertexColorSetManipulator(video::SColor color)
Vertex manipulator to set vertex color to one of two values depending on a given threshold.
void operator()(video::S3DVertex &vertex) const
SVertexColorThresholdManipulator(u8 threshold, video::SColor low, video::SColor high)
Vertex manipulator which scales the position of the vertex along the normals.
SVertexPositionScaleAlongNormalsManipulator(const core::vector3df &factor)
void operator()(VType &vertex) const
Vertex manipulator which scales the position of the vertex.
SVertexPositionScaleManipulator(const core::vector3df &factor)
void operator()(VType &vertex) const
Vertex manipulator which scales the TCoords of the vertex.
void operator()(video::S3DVertex2TCoords &vertex) const
void operator()(VType &vertex) const
SVertexTCoordsScaleManipulator(const core::vector2df &factor, u32 uvSet=1)
Class representing a 32 bit ARGB color.
void setBlue(u32 b)
Sets the blue component of the Color.
u32 getGreen() const
Returns the green component of the color.
SColor getInterpolated(const SColor &other, f32 d) const
Interpolates the color with a f32 value to another color.
u32 getAverage() const
Get average intensity of the color in the range [0,255].
u32 getRed() const
Returns the red component of the color.
f32 getLuminance() const
Get luminance of the color in the range [0,255].
void setAlpha(u32 a)
Sets the alpha component of the Color.
void setRed(u32 r)
Sets the red component of the Color.
f32 getLightness() const
Get lightness of the color in the range [0,255].
SColor getInterpolated_quadratic(const SColor &c1, const SColor &c2, f32 d) const
Returns interpolated color. ( quadratic )
void setGreen(u32 g)
Sets the green component of the Color.
u32 getBlue() const
Returns the blue component of the color.
const T clamp(const T &value, const T &low, const T &high)
clamps a value between low and high
REALINLINE s32 round32(f32 x)
Everything in the Irrlicht Engine can be found in this namespace.
float f32
32 bit floating point variable.
unsigned int u32
32 bit unsigned variable.
unsigned char u8
8 bit unsigned variable.
signed int s32
32 bit signed variable.
Interface for vertex manipulators.
Vertex with two texture coordinates.
core::vector2d< f32 > TCoords2
Second set of texture coordinates.
standard vertex used by the Irrlicht engine.
core::vector2d< f32 > TCoords
Texture coordinates.