25#ifndef SFML_VERTEXARRAY_HPP
26#define SFML_VERTEXARRAY_HPP
88 Vertex& operator [](
unsigned int index);
104 const Vertex& operator [](
unsigned int index)
const;
190 std::vector<Vertex> m_vertices;
#define SFML_GRAPHICS_API
Abstract base class for objects that can be drawn to a render target.
friend class RenderTarget
Define the states used for drawing to a RenderTarget.
VertexArray()
Default constructor.
void clear()
Clear the vertex array.
void append(const Vertex &vertex)
Add a vertex to the array.
void resize(unsigned int vertexCount)
Resize the vertex array.
PrimitiveType getPrimitiveType() const
Get the type of primitives drawn by the vertex array.
void setPrimitiveType(PrimitiveType type)
Set the type of primitives to draw.
FloatRect getBounds() const
Compute the bounding rectangle of the vertex array.
unsigned int getVertexCount() const
Return the vertex count.
VertexArray(PrimitiveType type, unsigned int vertexCount=0)
Construct the vertex array with a type and an initial number of vertices.
Define a point with color and texture coordinates.
PrimitiveType
Types of primitives that a sf::VertexArray can render.