13 #ifndef OGLPLUS_BUFFER_DATA_1310102147_HPP
14 #define OGLPLUS_BUFFER_DATA_1310102147_HPP
43 template <
typename T, std::
size_t N>
50 template <
typename T, std::
size_t N>
63 GLsizeiptr Size(
void)
const
68 const GLvoid* Data(
void)
const
76 #endif // include guard
BufferData(BufferSize size, const GLvoid *data)
Construction from size in bytes and pointer to data.
Definition: buffer_data.hpp:30
BufferData(GLsizei count, const T *data)
Construction from count of instances of type T at data.
Definition: buffer_data.hpp:37
BufferData(const std::vector< T > &v)
Construction from a std::vector.
Definition: buffer_data.hpp:58
This class represents the size of a GPU buffer in bytes.
Definition: buffer_size.hpp:22
Object representing Buffer's storage size in bytes.
BufferData(const std::array< T, N > &a)
Construction from a std::array.
Definition: buffer_data.hpp:51
BufferData(const T(&data)[N])
Construction from an array with known size.
Definition: buffer_data.hpp:44
GLsizeiptr Get(void) const
Gets the size in bytes.
Definition: buffer_size.hpp:58
Class used for passing the size of and pointer to data to be put in a Buffer.
Definition: buffer_data.hpp:21