13 #ifndef OGLPLUS_BUFFER_SIZE_1310102147_HPP 
   14 #define OGLPLUS_BUFFER_SIZE_1310102147_HPP 
   39      : _size(sizeof(
T)*count)
 
   42     template <
typename T, std::
size_t N>
 
   47     template <
typename T, std::
size_t N>
 
   49      : _size(sizeof(
T)*a.size())
 
   54      : _size(sizeof(
T)*v.size())
 
   58     GLsizeiptr 
Get(
void)
 const 
   83 template <
typename Type>
 
   88     BufferTypedSize(
void) { }
 
   90     BufferTypedSize(GLsizeiptr count)
 
   97 #endif // include guard 
This class represents the size of a GPU buffer in bytes. 
Definition: buffer_size.hpp:22
BufferSize Add(unsigned count, const T *=nullptr) const 
Add the size of count instances of T. 
Definition: buffer_size.hpp:72
BufferSize(void)
Construction of zero size. 
Definition: buffer_size.hpp:28
BufferSize(GLsizeiptr size)
Construction of the specified size in bytes. 
Definition: buffer_size.hpp:33
static BufferSize Of(unsigned count, const T *data=nullptr)
Makes the size of count instances of T. 
Definition: buffer_size.hpp:65
GLsizeiptr Get(void) const 
Gets the size in bytes. 
Definition: buffer_size.hpp:58