OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::BufferData Class Reference

Class used for passing the size of and pointer to data to be put in a Buffer. More...

#include </home/chochlik/devel/oglplus/include/oglplus/buffer_data.hpp>

Public Member Functions

 BufferData (BufferSize size, const GLvoid *data)
 Construction from size in bytes and pointer to data.
 
template<typename T >
 BufferData (GLsizei count, const T *data)
 Construction from count of instances of type T at data.
 
template<typename T , std::size_t N>
 BufferData (const T(&data)[N])
 Construction from an array with known size.
 
template<typename T , std::size_t N>
 BufferData (const std::array< T, N > &a)
 Construction from a std::array.
 
template<typename T >
 BufferData (const std::vector< T > &v)
 Construction from a std::vector.
 

Detailed Description

Class used for passing the size of and pointer to data to be put in a Buffer.


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).