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>
259 Transformation.transformVect(vertex.Pos);
277 template <
typename VType>
281 vertex.TCoords *= Factor;
Struct for holding a mesh with a single material.
Class which holds the geometry of an object.
SVertexColorBrightnessManipulator(s32 amount)
void operator()(video::S3DVertex &vertex) const
void operator()(video::S3DVertex &vertex) const
SVertexColorContrastBrightnessManipulator(f32 factor, s32 amount)
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
void operator()(video::S3DVertex &vertex) const
SVertexColorGammaManipulator(f32 gamma)
void operator()(video::S3DVertex &vertex) const
SVertexColorInterpolateLinearManipulator(video::SColor color, f32 factor)
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
SVertexColorScaleManipulator(f32 factor)
void operator()(video::S3DVertex &vertex) const
SVertexColorSetAlphaManipulator(u32 alpha)
void operator()(video::S3DVertex &vertex) const
void operator()(video::S3DVertex &vertex) const
SVertexColorSetManipulator(video::SColor color)
void operator()(video::S3DVertex &vertex) const
SVertexColorThresholdManipulator(u8 threshold, video::SColor low, video::SColor high)
SVertexPositionScaleAlongNormalsManipulator(const core::vector3df &factor)
void operator()(VType &vertex) const
SVertexPositionScaleManipulator(const core::vector3df &factor)
void operator()(VType &vertex) const
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.
vector3d< f32 > vector3df
Typedef for a f32 3d vector.
vector2d< f32 > vector2df
Typedef for f32 2d vector.
const T clamp(const T &value, const T &low, const T &high)
clamps a value between low and high
CMatrix4< f32 > matrix4
Typedef for f32 matrix.
REALINLINE s32 round32(f32 x)
All scene management can be found in this namespace: Mesh loading, special scene nodes like octrees a...
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.
Simple implementation of the IMesh interface.
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.