This class represents the size of a GPU buffer in bytes. More...
#include </home/chochlik/devel/oglplus/include/oglplus/buffer_size.hpp>
Inherited by oglplus::BufferTypedSize< Type >.
Public Member Functions | |
BufferSize (void) | |
Construction of zero size. | |
BufferSize (GLsizeiptr size) | |
Construction of the specified size in bytes. | |
GLsizeiptr | Get (void) const |
Gets the size in bytes. | |
template<typename T > | |
BufferSize | Add (unsigned count, const T *=nullptr) const |
Add the size of count instances of T. | |
Static Public Member Functions | |
template<typename T > | |
static BufferSize | Of (unsigned count, const T *data=nullptr) |
Makes the size of count instances of T. | |
This class represents the size of a GPU buffer in bytes.