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
VertexArray(PrimitiveType type, std::size_t vertexCount=0)
Construct the vertex array with a type and an initial number of vertices.
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.
Definition AudioResource.hpp:36