Loading...
Searching...
No Matches
VertexArray.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
Abstract base class for objects that can be drawn to a render target.
Definition Drawable.hpp:44
Base class for all render targets (window, texture, ...).
Definition RenderTarget.hpp:63
std::vector< Vertex >::iterator begin()
Return an iterator to the beginning of the array.
VertexArray(PrimitiveType type, std::size_t vertexCount=0)
Construct the vertex array with a type and an initial number of vertices.
std::vector< Vertex >::iterator end()
Return an iterator to the end of the array.
const Vertex & operator[](std::size_t index) const
Get a read-only access to a vertex by its index.
Vertex & operator[](std::size_t index)
Get a read-write access to a vertex by its index.
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.
std::vector< Vertex >::const_iterator begin() const
Return an iterator to the beginning of the array.
std::vector< Vertex >::const_iterator end() const
Return an iterator to the end of the array.
Definition AudioResource.hpp:36