21 #ifndef GF_VERTEX_BUFFER_H 22 #define GF_VERTEX_BUFFER_H 27 #include "GraphicsHandle.h" 28 #include "Portability.h" 29 #include "PrimitiveType.h" 32 #ifndef DOXYGEN_SHOULD_SKIP_THIS 40 static void gen(
int n,
unsigned* resources);
41 static void del(
int n,
const unsigned* resources);
130 return m_vbo.isValid();
139 return m_ebo.isValid();
194 #ifndef DOXYGEN_SHOULD_SKIP_THIS 199 #endif // GF_VERTEX_BUFFER_H
std::size_t getVertexSize() const
Get the vertex size in the buffer.
Definition: VertexBuffer.h:147
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:138
PrimitiveType
Kind of primitives to render.
Definition: PrimitiveType.h:43
Data in the graphics memory.
Definition: VertexBuffer.h:77
constexpr BufferRef< T > buffer(T *data, std::size_t size)
Create a reference to a buffer.
Definition: BufferRef.h:211
Definition: GraphicsHandle.h:41
PrimitiveType getPrimitiveType() const
Get the primitive type of the data in the buffer.
Definition: VertexBuffer.h:173
bool hasArrayBuffer() const
Check if there is an array buffer.
Definition: VertexBuffer.h:129
GraphicsTag
Definition: GraphicsHandle.h:34
The namespace for gf classes.
Definition: Action.h:35
std::size_t getCount() const
Get the count of vertices or indices.
Definition: VertexBuffer.h:160