21 #ifndef GF_VERTEX_BUFFER_H 22 #define GF_VERTEX_BUFFER_H 27 #include "GraphicsApi.h" 28 #include "GraphicsHandle.h" 29 #include "PrimitiveType.h" 32 #ifndef DOXYGEN_SHOULD_SKIP_THIS 44 static void gen(
int n,
unsigned* resources);
45 static void del(
int n,
const unsigned* resources);
134 return m_vbo.isValid();
143 return m_ebo.isValid();
198 #ifndef DOXYGEN_SHOULD_SKIP_THIS 203 #endif // GF_VERTEX_BUFFER_H PrimitiveType
Kind of primitives to render.
Definition: PrimitiveType.h:43
std::size_t getVertexSize() const
Get the vertex size in the buffer.
Definition: VertexBuffer.h:151
A point associated with a color and a texture coordinate.
Definition: Vertex.h:75
bool hasElementArrayBuffer() const
Check if there is an element array buffer.
Definition: VertexBuffer.h:142
Data in the graphics memory.
Definition: VertexBuffer.h:81
A trait to handle creation and deletion of GPU resources.
Definition: GraphicsHandle.h:48
PrimitiveType getPrimitiveType() const
Get the primitive type of the data in the buffer.
Definition: VertexBuffer.h:177
bool hasArrayBuffer() const
Check if there is an array buffer.
Definition: VertexBuffer.h:133
The namespace for gf classes.
Definition: Action.h:35
std::size_t getCount() const
Get the count of vertices or indices.
Definition: VertexBuffer.h:164
GraphicsTag
A tag to represent various GPU resources.
Definition: GraphicsHandle.h:37