67 #ifndef _graphicsproceduralvertrxuvmodifier_cpp
68 #define _graphicsproceduralvertexuvmodifier_cpp
70 #include "Graphics/Procedural/Mesh/vertexuvmodifier.h"
93 for(
VertexIterator VertIt = Vertices.begin() ; VertIt != Vertices.end() ; ++VertIt )
98 for(
VertexIterator VertIt = Vertices.begin() ; VertIt != Vertices.end() ; ++VertIt )
100 std::swap( VertIt->UV.X, VertIt->UV.Y );
106 {
return "VertexUVModifier"; }
std::vector< Vertex > VertexContainer
Basic container type for Vertex storage.
bool Boole
Generally acts a single bit, true or false.
VertexContainer::iterator VertexIterator
Iterator type for Vertex instances in a VertexContainer.
A modifier that will transform the UV coordinates of a mesh.
VertexUVModifier & SetUVTile(const Vector2 &Tile)
Sets the scaling to apply to each vertex UV.
virtual String GetName() const
Gets the name of this modifier.
A convenience buffer that stores vertices and indices of a mesh to be generated.
VertexUVModifier & SetUVTranslate(const Vector2 &Trans)
Sets the translation to apply to each vertex UV.
VertexUVModifier()
Blank constructor.
VertexContainer & GetVertices()
Gets a modifiable reference to Vertices.
float Real
A Datatype used to represent a real floating point number.
This is used to represent a point on a 2 dimentional area, such as a screen.
Boole SwitchUV
Whether or not the X and Y components of every UV should be swapped after the operation.
VertexUVModifier & SetSwitchUV(const Boole Switch)
Sets if UV's will swap components.
void SetValues(const Real &x, const Real &y)
Sets the X and Y values of this vector2.
The bulk of the engine components go in this namspace.
virtual ~VertexUVModifier()
Class destructor.
Vector2 UVTranslate
The amount of actual translation to apply to the UV coordinates.
virtual void Modify(TriangleBuffer &Buffer)
Alters the generated pixels in a TriangleBuffer.
Vector2 UVTile
The amount of scaling to apply to the UV coordinates.
std::string String
A datatype used to a series of characters.