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 std::size_t getVertexCount()
const;
88 Vertex& operator [](std::size_t index);
104 const Vertex& operator [](std::size_t index)
const;
129 void resize(std::size_t vertexCount);
137 void append(
const Vertex& vertex);
190 std::vector<Vertex> m_vertices;
197 #endif // SFML_VERTEXARRAY_HPP PrimitiveType
Types of primitives that a sf::VertexArray can render.
Define the states used for drawing to a RenderTarget.
Define a set of one or more 2D primitives.
Define a point with color and texture coordinates.
Base class for all render targets (window, texture, ...)
Abstract base class for objects that can be drawn to a render target.