25 #ifndef SFML_VERTEX_HPP
26 #define SFML_VERTEX_HPP
31 #include <SFML/Graphics/Export.hpp>
32 #include <SFML/Graphics/Color.hpp>
33 #include <SFML/System/Vector2.hpp>
105 #endif // SFML_VERTEX_HPP
Utility class for manipulating RGBA colors.
Vertex(const Vector2f &thePosition, const Color &theColor)
Construct the vertex from its position and color.
Vector2f position
2D position of the vertex
Vertex()
Default constructor.
Vector2f texCoords
Coordinates of the texture's pixel to map to the vertex.
Color color
Color of the vertex.
Vertex(const Vector2f &thePosition)
Construct the vertex from its position.
Vertex(const Vector2f &thePosition, const Color &theColor, const Vector2f &theTexCoords)
Construct the vertex from its position, color and texture coordinates.
Define a point with color and texture coordinates.
Vertex(const Vector2f &thePosition, const Vector2f &theTexCoords)
Construct the vertex from its position and texture coordinates.