OGLplus (0.52.0) a C++ wrapper for OpenGL

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.
 

Detailed Description

This class represents the size of a GPU buffer in bytes.


The documentation for this class was generated from the following file:

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).