class SFML::Vertex

A single point of geometry: position, colour, and texture coordinate. Plain Ruby value object β€” VertexArray copies it into / out of CSFML storage, so mutating a Vertex after appending doesn’t propagate.

SFML::Vertex.new([10, 20]) SFML::Vertex.new([10, 20], color: SFML::Color.red) SFML::Vertex.new([10, 20], color: SFML::Color.red, tex_coords: [0, 0])