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