21 #ifndef GF_VERTEX_BUFFER_H
22 #define GF_VERTEX_BUFFER_H
31 #ifndef DOXYGEN_SHOULD_SKIP_THIS
181 #ifndef DOXYGEN_SHOULD_SKIP_THIS
bool hasElementArrayBuffer() const
Check if there is an element array buffer.
Definition: VertexBuffer.h:135
VertexBuffer & operator=(VertexBuffer &&other)
Move assignment.
A point associated with a color and a texture coordinate.
Definition: Vertex.h:75
static void bind(const VertexBuffer *buffer)
Binds a vertex buffer.
PrimitiveType
Kind of primitives to render.
Definition: PrimitiveType.h:43
Data in the graphics memory.
Definition: VertexBuffer.h:70
void load(const Vertex *vertices, std::size_t count, PrimitiveType type)
Load an array of vertices.
VertexBuffer(VertexBuffer &&other)
Move constructor.
PrimitiveType getPrimitiveType() const
Get the primitive type of the data in the buffer.
Definition: VertexBuffer.h:161
bool hasArrayBuffer() const
Check if there is an array buffer.
Definition: VertexBuffer.h:126
std::size_t getCount() const
Get the count of vertices or indices.
Definition: VertexBuffer.h:148
VertexBuffer()
Default constructor.
VertexBuffer(const VertexBuffer &)=delete
Deleted copy constructor.
~VertexBuffer()
Destructor.
VertexBuffer & operator=(const VertexBuffer &)=delete
Deleted copy assignment.
#define GF_API
Definition: Portability.h:35
void load(const Vertex *vertices, const uint16_t *indices, std::size_t count, PrimitiveType type)
Load an array of vertices and their indices.