24 #ifndef GF_VERTEX_ARRAY_H    25 #define GF_VERTEX_ARRAY_H    31 #include "Portability.h"    32 #include "PrimitiveType.h"    37 #ifndef DOXYGEN_SHOULD_SKIP_THIS    99       return m_vertices.size();
   108       return m_vertices.data();
   125       return m_vertices[index];
   142       return m_vertices[index];
   153       return m_vertices.data();
   164       return m_vertices.data() + m_vertices.size();
   175       return m_vertices.data();
   186       return m_vertices.data() + m_vertices.size();
   195       return m_vertices.empty();
   223       m_vertices.resize(count);
   232       m_vertices.reserve(capacity);
   241       m_vertices.push_back(vertex);
   279     RectF getBounds() 
const;
   285     std::vector<Vertex> m_vertices;
   288 #ifndef DOXYGEN_SHOULD_SKIP_THIS   293 #endif // GF_VERTEX_ARRAY_H const Vertex * begin() const
Get an iterator to the first element. 
Definition: VertexArray.h:152
 
const Vertex * end() const
Get an iterator past the last element. 
Definition: VertexArray.h:163
 
VertexArray(PrimitiveType type, std::size_t count=0)
Construct the vertex array with a type and an initial number of vertices. 
Definition: VertexArray.h:86
 
A set of primitives. 
Definition: VertexArray.h:65
 
std::size_t getVertexCount() const
Return the vertex count. 
Definition: VertexArray.h:98
 
Base class for all render targets (window, texture, ...) 
Definition: RenderTarget.h:73
 
Define the states used for drawing to a RenderTarget. 
Definition: RenderStates.h:82
 
const Vertex * getVertexData() const
Return the vertex data. 
Definition: VertexArray.h:107
 
bool isEmpty() const
Check if the vertex array is empty. 
Definition: VertexArray.h:194
 
A point associated with a color and a texture coordinate. 
Definition: Vertex.h:75
 
PrimitiveType
Kind of primitives to render. 
Definition: PrimitiveType.h:43
 
void reserve(std::size_t capacity)
Increase the capacity of the vertex array. 
Definition: VertexArray.h:231
 
List of individual points. 
 
Abstract base class for objects that can be drawn to a render window. 
Definition: Drawable.h:57
 
Vertex * begin()
Get an iterator to the first element. 
Definition: VertexArray.h:174
 
const Vertex & operator[](std::size_t index) const
Get a read-only access to a vertex by its index. 
Definition: VertexArray.h:141
 
Vertex * end()
Get an iterator past the last element. 
Definition: VertexArray.h:185
 
The namespace for gf classes. 
Definition: Action.h:35
 
void resize(std::size_t count)
Resize the vertex array. 
Definition: VertexArray.h:222
 
void append(const Vertex &vertex)
Add a vertex to the array. 
Definition: VertexArray.h:240
 
void setPrimitiveType(PrimitiveType type)
Set the type of primitives to draw. 
Definition: VertexArray.h:258
 
Vertex & operator[](std::size_t index)
Get a read-write access to a vertex by its index. 
Definition: VertexArray.h:124
 
void clear()
Clear the vertex array. 
Definition: VertexArray.h:206
 
PrimitiveType getPrimitiveType() const
Get the type of primitives drawn by the vertex array. 
Definition: VertexArray.h:267
 
VertexArray()
Default constructor. 
Definition: VertexArray.h:73