12#ifndef VERTEXBUFFER_H_6014714286
13#define VERTEXBUFFER_H_6014714286
15#include <Carna/Carna.h>
74template<
typename VertexType >
94template<
typename VertexType >
Defines Carna::base::BaseBuffer.
Represents an association.
Implements OpenGL buffer objects maintenance RAII base class.
Maintains GL_ARRAY_BUFFER object that holds vertices. This class realizes the RAII-idiom.
void copy(const void *bufferPtr, std::size_t bufferSize, std::size_t verticesCount)
Copies verticesCount vertices referenced by bufferPtr to the maintained vertex buffer object.
VertexBufferBase()
Creates GL_ARRAY_BUFFER object.
Specializes VertexBufferBase for particular VertexType.
VertexType Vertex
Holds the vertex type maintained by this vertex buffer object.
void copy(const Vertex *verticesPtr, const std::size_t verticesCount)
Copies verticesCount vertices referenced by verticesPtr to the maintained vertex buffer object.