25 #ifndef SFML_VERTEXARRAY_HPP
26 #define SFML_VERTEXARRAY_HPP
31 #include <SFML/Graphics/Export.hpp>
32 #include <SFML/Graphics/Vertex.hpp>
33 #include <SFML/Graphics/PrimitiveType.hpp>
34 #include <SFML/Graphics/Rect.hpp>
35 #include <SFML/Graphics/Drawable.hpp>
72 unsigned int getVertexCount()
const;
88 Vertex& operator [](
unsigned int index);
104 const Vertex& operator [](
unsigned int index)
const;
129 void resize(
unsigned int vertexCount);
137 void append(
const Vertex& vertex);
190 std::vector<Vertex> m_vertices;
197 #endif // SFML_VERTEXARRAY_HPP
Abstract base class for objects that can be drawn to a render target.
Define the states used for drawing to a RenderTarget.
Define a point with color and texture coordinates.
PrimitiveType
Types of primitives that a sf::VertexArray can render.
Base class for all render targets (window, texture, ...)
Define a set of one or more 2D primitives.