12#ifndef BASEBUFFER_H_6014714286
13#define BASEBUFFER_H_6014714286
79 const unsigned int id;
Implements OpenGL buffer objects maintenance RAII base class.
bool valid
Flag that indicates whether the maintained OpenGL buffer object is valid.
void setSize(std::size_t size)
Sets the size of the maintained buffer object.
void bind() const
Invokes glBindBuffer to bind the maintained buffer object to target.
const unsigned int target
Holds where the maintained buffer object is to be bound to by glBindBuffer.
virtual ~BaseBuffer()
Deletes the maintained OpenGL buffer object.
bool isValid() const
Tells whether the buffer object was marked as valid.
std::size_t size() const
Tells the previously set size of the maintained buffer object.
const unsigned int id
Holds the ID of the maintained OpenGL buffer object.
BaseBuffer(unsigned int target)
Acquires new OpenGL buffer object.