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>
Utility class for manipulating RGBA colors.
Define a point with color and texture coordinates.
Vertex(const Vector2f &thePosition)
Construct the vertex from its position.
Vertex()
Default constructor.
Vertex(const Vector2f &thePosition, const Color &theColor)
Construct the vertex from its position and color.
Color color
Color of the vertex.
Vector2f position
2D position of the vertex
Vector2f texCoords
Coordinates of the texture's pixel to map to the vertex.
Vertex(const Vector2f &thePosition, const Vector2f &theTexCoords)
Construct the vertex from its position and texture coordinates.
Vertex(const Vector2f &thePosition, const Color &theColor, const Vector2f &theTexCoords)
Construct the vertex from its position, color and texture coordinates.