15#ifndef VERTEXBUFFER_H_6014714286
16#define VERTEXBUFFER_H_6014714286
76template<
typename VertexType >
96template<
typename VertexType >
Defines LibCarna::base::BaseBuffer.
Contains forward-declarations.
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.
VertexBufferBase()
Creates GL_ARRAY_BUFFER object.
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.
Specializes VertexBufferBase for particular VertexType.
void copy(const Vertex *verticesPtr, const std::size_t verticesCount)
Copies verticesCount vertices referenced by verticesPtr to the maintained vertex buffer object.
VertexType Vertex
Holds the vertex type maintained by this vertex buffer object.