virtual ~buffer_too_small() throw() { }
};
-class BufferRange;
-
/**
A buffer for storing data in GL memory. Putting vertex and index data in
buffers can improve rendering performance. The VertexArray, Mesh and
friend BufferBackend;
private:
- unsigned size;
+ unsigned size = 0;
public:
- Buffer();
-
/** Defines the storage size of the buffer. Must be called before data can
be uploaded. Storage cannot be changed once set. */
void storage(unsigned);